一半君的总结纸

听话只听一半君

#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;

Wednesday, October 24, 2001

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: