一半君的总结纸

听话只听一半君

#24 如何自动隐藏modelPanel避免视窗刷新来使Simulations加快速度?

首先, 你可以使用Maya内建的”macro”把 layout 设置成 “Single Persp” 模式:

setNamedPanelLayout "Single Perspective View";

然后, 使用 ‘getPanel’ command 找到当前view的 modelPanel:

string $modelPanelA[] = `getPanel -visiblePanels`;
// Result: modelPanel4 //

然后找到一个当前存在的 outlinerPanel:

string $outlinerPanelA[] = `getPanel -type outlinerPanel`;
// Result: outlinerPanel1 //

把 modelPanel 替换成 Outliner:

outlinerPanel -e -rp $modelPanelA[0] $outlinerPanelA[0];

现在你的视窗里应该没有modelling views, 只有一个 Outliner.

最后, 你可以开始你的Simulation了, 比如Particle sim,或者bake simulation keys, 或者其他随便什么操作.

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