jtChannelBox.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:ModularChannelBox 作者: Vaei 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号