26 lines
550 B
Python
26 lines
550 B
Python
|
#!/usr/bin/env python
|
||
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
"""
|
||
|
版权所有: 深圳时光科技有限公司
|
||
|
联系方式: q.100@qq.com
|
||
|
创建日期: 2023/08/08
|
||
|
"""
|
||
|
|
||
|
import os
|
||
|
import imp
|
||
|
import maya.cmds as cmds
|
||
|
|
||
|
def sg_import_body_anim():
|
||
|
"""
|
||
|
导入身体动画数据
|
||
|
"""
|
||
|
path = os.getenv('SG_PATH')
|
||
|
meta_anim_path = os.path.join(path, 'files/meta_anim/meta_body_anim.py')
|
||
|
|
||
|
# 使用imp模块导入动画脚本
|
||
|
imp.load_source('', meta_anim_path)
|
||
|
|
||
|
# 如果直接运行此脚本
|
||
|
if __name__ == '__main__':
|
||
|
sg_import_body_anim()
|