def channelbox_menu_selected_channels(box):
obj_list = cmds.channelBox(box.channelbox, q=1, mainObjectList=1)
attr_list = cmds.channelBox(box.channelbox, q=1, selectedMainAttributes=1)
if obj_list and attr_list and len(obj_list) > 0 and len(attr_list) > 0:
return 1
obj_list = cmds.channelBox(box.channelbox, q=1, shapeObjectList=1)
attr_list = cmds.channelBox(box.channelbox, q=1, selectedShapeAttributes=1)
if obj_list and attr_list and len(obj_list) > 0 and len(attr_list) > 0:
return 1
obj_list = cmds.channelBox(box.channelbox, q=1, historyObjectList=1)
attr_list = cmds.channelBox(box.channelbox, q=1, selectedHistoryAttributes=1)
if obj_list and attr_list and len(obj_list) > 0 and len(attr_list) > 0:
return 1
obj_list = cmds.channelBox(box.channelbox, q=1, outputObjectList=1)
attr_list = cmds.channelBox(box.channelbox, q=1, selectedOutputAttributes=1)
if obj_list and attr_list and len(obj_list) > 0 and len(attr_list) > 0:
return 1
return 0
评论列表
文章目录