MEL How-To #38 | ||
| ||
How do I activate any of Maya's Sacred Tools via MEL?Maya maintains several global string variables which define the names for the Sacred Tools: Select Tool: $gSelect (typically "selectSuperContext") Lasso Tool: $gLasso (typically "lassoSelectContext") Move Tool: $gMove (typically "moveSuperContext") Rotate Tool: $gRotate (typically "RotateSuperContext") Scale Tool: $gScale (typically "scaleSuperContext") Show Manip Tool: $gShowManip (typically "ShowManips") Examples: // Activate the Select Tool global string $gSelect; setToolTo $gSelect; // Activate the Rotate Tool global string $gRotate; setToolTo $gRotate; | ||
Copyright ©2005 by Bryan Ewert, maya@ewertb.com Maya is a Registered Trademark of Alias |