一半君的总结纸

听话只听一半君

#38 如何用MEL切换Maya tool box上的工具(Tools)?

Maya 把这些Tools的名字存在了全局字符变量里(global string variables):

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

举例:

// 激活 Select Tool
global string $gSelect;
setToolTo $gSelect;

// 激活 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 博主赞过: