skeleton.py 文件源码

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

项目:cmt 作者: chadmv 项目源码 文件源码
def load(file_path=None):
    """Load a skeleton hierarchy from the given json data file and generates the hierarchy in Maya.
    :param file_path: Json file on disk.
    :return: The hierarchy data loaded from disk.
    """
    if file_path is None:
        file_path = cmds.fileDialog2(fileFilter='Skeleton Files (*.json)', dialogStyle=2, caption='Export Skeleton',
                                     fileMode=1, returnFilter=False)
        if file_path:
            file_path = file_path[0]
        else:
            return
    data = load_data(file_path)
    create_node(data)
    return data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号