zbw_randomAttrs.py 文件源码

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

项目:zTools 作者: zethwillie 项目源码 文件源码
def multiplyFloats(*args):
    sel = cmds.ls(sl=True)
    attrs = getChannels()

    mult = cmds.floatFieldGrp(widgets["multFFG"], q=True, v1=True)

    for obj in sel:
        for attr in attrs:
            if (cmds.attributeQuery(attr, node=obj, exists=True)):
                current = cmds.getAttr("{0}.{1}".format(obj, attr))
                newVal = current * mult
                cmds.setAttr("{0}.{1}".format(obj, attr), newVal)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号