def control(type="none", *args):
"""gets teh name from the button pushed and the axis from the radio button group"""
axisRaw = cmds.radioButtonGrp(widgets["ctrlAxisRBG"], q=True, sl=True)
if axisRaw == 1:
axis = "x"
if axisRaw == 2:
axis = "y"
if axisRaw == 3:
axis = "z"
rig.createControl(name = "Ctrl", type = type, axis = axis, color = "yellow")
评论列表
文章目录