#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, 或者其他随便什么操作.

留下评论