def channelbox_command_freezeUI():
with sysCmd.Undo(0):
if cmds.window("freezeWindowBox", q=1, exists=1):
cmds.deleteUI("freezeWindowBox")
frz_window = cmds.window("freezeWindowBox", title="Freeze", rtf=1, s=0, tbm=1, tlb=1)
layout = cmds.columnLayout(p=frz_window)
layout_top = cmds.rowLayout(nc=4, p=layout)
width = 25
cmds.button(l="T", w=width, ann="Freeze Translate",
c=sysCmd.rpartial(channelbox_command_freezeTranslate, "", "", "Freeze Translate"), p=layout_top)
cmds.button(l="R", w=width, ann="Freeze Rotate",
c=sysCmd.rpartial(channelbox_command_freezeRotate, "", "", "Freeze Rotate"), p=layout_top)
cmds.button(l="S", w=width, ann="Freeze Scale",
c=sysCmd.rpartial(channelbox_command_freezeScale, "", "", "Freeze Scale"), p=layout_top)
cmds.button(l="A", w=width, ann="Freeze All",
c=sysCmd.rpartial(channelbox_command_freezeAll, "", "", "Freeze All"), p=layout_top)
layout_bot = cmds.rowLayout(nc=4, p=layout)
cmds.button(l="TS", w=width, ann="Freeze Translate / Scale",
c=sysCmd.rpartial(channelbox_command_freezeTranslateScale, "", "", "Freeze Translate / Scale"),
p=layout_bot)
cmds.button(l="TR", w=width, ann="Freeze Translate / Rotate",
c=sysCmd.rpartial(channelbox_command_freezeTranslateRotate, "", "", "Freeze Translate / Rotate"),
p=layout_bot)
cmds.button(l="RS", w=width, ann="Freeze Rotate / Scale",
c=sysCmd.rpartial(channelbox_command_freezeRotateScale, "", "", "Freeze Rotate / Scale"),
p=layout_bot)
cmds.button(l="JO", w=width, ann="Freeze Joint Orient",
c=sysCmd.rpartial(channelbox_command_freezeJointOrient, "", "", "Freeze Joint Orient"),
p=layout_bot)
cmds.window(frz_window, e=1, wh=(1, 1), rtf=1)
cmds.showWindow(frz_window)
# --
jtChannelBox_Commands_Default.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录