// =========================================================================== // Copyright 2018 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this software in either electronic or hard copy form. // =========================================================================== // Get current component mask global proc string getComponentMask() { string $compSelType = ""; int $objectMode = `selectMode -q -o`; string $ocm = ($objectMode ? "-ocm " : ""); string $selQuery = "selectType -q " + $ocm; if (eval($selQuery + "-vertex")) $compSelType = "vertex"; else if (eval($selQuery + "-edge")) $compSelType = "edge"; else if (eval($selQuery + "-facet")) $compSelType = "facet"; else if (eval($selQuery + "-polymeshUV")) $compSelType = "polymeshUV"; else if (eval($selQuery + "-meshUVShell")) $compSelType = "meshUVShell"; else $compSelType = "none"; return $compSelType; }