def channelbox_command_animCurve(box, menuItem, key, *args):
with sysCmd.Undo(0):
mel.eval("GraphEditor;")
cmds.selectionConnection("graphEditor1FromOutliner", e=1, clear=1)
# in case graph editor is open already, clear selection
sel_attrs = channelBox_SelectedPlugs(box)
if sel_attrs:
for i in sel_attrs:
cmds.evalDeferred(
"cmds.selectionConnection('graphEditor1FromOutliner', e = 1, select =\"" + i + "\")")
# evalDeferred allows occurring graph editor opens, else selection occurs before element exists
jtChannelBox_Commands_Default.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录