def channelbox_command_setManip(box, menuItem, key, *args):
# Set manipulator display/update type based on selected attr in channel box
with sysCmd.Undo(0):
state = 1 if key == "noManips" else 2 if key == "invisibleManips" else 3
if state == 1:
cmds.channelBox(box.channelbox, e=1, useManips="none")
elif state == 2:
cmds.channelBox(box.channelbox, e=1, useManips="invisible")
else:
cmds.channelBox(box.channelbox, e=1, useManips="standard")
box.saved_states["manipsState"][0] = state
if box.saved_states["showIcons"][0]:
channelbox_command_Symbol_update(box, "manipsState")
sysCmd.channelbox_save_state(box)
jtChannelBox_Commands_Default.py 文件源码
python
阅读 29
收藏 0
点赞 0
评论 0
评论列表
文章目录