control.py 文件源码

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

项目:cmt 作者: chadmv 项目源码 文件源码
def get_stack_count(node):
    """Get the number of transforms in the stack.

    :param node: Node to query.
    :return: The number of transforms in the stack.
    """
    connections = cmds.listConnections('{0}.message'.format(node), plugs=True) or []
    count = 0
    for connection in connections:
        connected_node, attribute = connection.split('.')
        if attribute == STACK_ATTRIBUTE:
            count += 1
    return count
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号