Ejemplo n.º 1
0
def applyMenuItem(item):
    # CREATE00
    if item == CREATE00[0]:
        cmds.CreateBlendShapeOptions()
    elif item == CREATE00[2]:
        cmds.CreateLatticeOptions()
    elif item == CREATE00[1]:
        cmds.CreateClusterOptions()
    # CREATE01
    elif item == CREATE01[0]:
        cmds.BendOptions()
    elif item == CREATE01[1]:
        cmds.SquashOptions()
    elif item == CREATE01[2]:
        cmds.TwistOptions()
    elif item == CREATE01[3]:
        cmds.WaveOptions()
    elif item == CREATE01[4]:
        cmds.SineOptions()
    elif item == CREATE01[5]:
        cmds.FlareOptions()
    # CREATE02
    elif item == CREATE02[0]:
        cmds.DistanceTool()
    elif item == CREATE02[1]:
        cmds.ToggleFaceNormalDisplay()
    elif item == CREATE02[2]:
        cmds.ChangeNormalSize()
    elif item == CREATE02[3]:
        cmds.ToggleBorderEdges()
    elif item == CREATE02[4]:
        cmds.ChangeEdgeWidth()
    elif item == CREATE02[6]:
        cmds.FilePathEditor()
Ejemplo n.º 2
0
def normalOnOff(*args):
    a = cmds.ls(sl=True)
    if (len(a) > 0):
        cmds.ToggleFaceNormalDisplay()
Ejemplo n.º 3
0
def toggleNormals(*args):
   cmds.ToggleFaceNormalDisplay()