jtChannelBox_Commands_Default.py 文件源码

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

项目:ModularChannelBox 作者: Vaei 项目源码 文件源码
def channelBox_ModifyPlugsInLayers(plugs, layers, operation):
    if not plugs:
        cmds.error("No channel attributes selected.")
    if not layers:
        cmds.error("No layer is selected.  Please select a layer.")

    for layer in layers:
        if not cmds.objectType(layer, isType="animLayer"):
            continue
        for plug in plugs:
            if operation:
                mel.eval("evalEcho( \"animLayer -edit -attribute " + plug + " " + layer + "\");")
            else:
                mel.eval("evalEcho( \"animLayer -edit -removeAttribute " + plug + " " + layer + "\");")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号