lib.py 文件源码

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

项目:core 作者: getavalon 项目源码 文件源码
def read(node):
    """Return user-defined attributes from `node`"""

    data = dict()

    for attr in cmds.listAttr(node, userDefined=True) or list():
        try:
            value = cmds.getAttr(node + "." + attr)
        except ValueError:
            # Some attributes cannot be read directly,
            # such as mesh and color attributes. These
            # are considered non-essential to this
            # particular publishing pipeline.
            value = None

        data[attr] = value

    return data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号