MEL How-To #38

Back · Previous · Next Maya

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")


// Activate the Select Tool
global string $gSelect;
setToolTo $gSelect;

// Activate the Rotate Tool
global string $gRotate;
setToolTo $gRotate;

Wednesday, October 24, 2001