Maya屏蔽骨骼和表面选择+视图曲线和多边形显示:快捷键设置

int $stVal1 = `selectType -q -nurbsSurface`;
int $stVal2 = `selectType -q -nurbsSurface`;

if ($stVal1 == 0 && $stVal2 == 0) {
    selectMode -object;
    selectType -handle 1 -ikHandle 1 -joint 1 -nurbsCurve 1 -cos 1 -stroke 1 -nurbsSurface 1 -polymesh 1 -subdiv 1 -plane 1 -lattice 1 -cluster 1 -sculpt 1 -nonlinear 1 -particleShape 1 -emitter 1 -field 1 -spring 1 -rigidBody 1 -fluid 1 -hairSystem 1 -follicle 1 -nCloth 1 -nRigid 1 -dynamicConstraint 1 -rigidConstraint 1 -collisionModel 1 -light 1 -camera 1 -texture 1 -ikEndEffector 1 -locator 1 -dimension 1;
    selectType -byName gpuCache 1;
} else {
    selectMode -object;
    selectType -handle 1 -ikHandle 1 -joint 0 -nurbsCurve 1 -cos 1 -stroke 1 -nurbsSurface 0 -polymesh 0 -subdiv 0 -plane 0 -lattice 1 -cluster 1 -sculpt 1 -nonlinear 1 -particleShape 1 -emitter 1 -field 1 -spring 1 -rigidBody 1 -fluid 1 -hairSystem 1 -follicle 1 -nCloth 1 -nRigid 1 -dynamicConstraint 1 -rigidConstraint 1 -collisionModel 1 -light 1 -camera 1 -texture 1 -ikEndEffector 1 -locator 1 -dimension 1;
    selectType -byName gpuCache 0;
}

string $objType = "nurbsSurface";
string $currPanel = `getPanel -withFocus`;

modelEditor -e -allObjects off $currPanel;

{
    string $cv = `modelEditor -q -nurbsCurves $currPanel`;
    if ($cv == 1) {
        modelEditor -e -nurbsCurves off $currPanel;
    }
    if ($cv == 0) {
        modelEditor -e -nurbsCurves on $currPanel;
    }
}

{
    string $cv = `modelEditor -q -polymeshes $currPanel`;
    if ($cv == 1) {
        modelEditor -e -polymeshes off $currPanel;
    }
    if ($cv == 0) {
        modelEditor -e -polymeshes on $currPanel;
    }
}
 收藏 (0) 打赏

您可以选择一种方式赞助本站

支付宝扫一扫赞助

微信钱包扫描赞助

未经允许不得转载:喵喵动画屋 » Maya屏蔽骨骼和表面选择+视图曲线和多边形显示:快捷键设置
分享到: 生成海报
一枚默默无闻的2B动画师。

热门推荐

评论 抢沙发

切换注册

登录

忘记密码 ?

切换登录

注册

我们将发送一封验证邮件至你的邮箱, 请正确填写以完成账号注册和激活