20 lines
451 B
Python
20 lines
451 B
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import os
|
|
import imp
|
|
import maya.cmds as cmds
|
|
|
|
def motion_apply():
|
|
"""
|
|
导入动作应用模块
|
|
"""
|
|
path = os.getenv('SG_PATH')
|
|
meta_motion_path = os.path.join(path, 'files/meta_motion_apply/meta_motion_apply.py')
|
|
|
|
# 使用imp模块导入动作应用脚本
|
|
imp.load_source('', meta_motion_path)
|
|
|
|
# 如果直接运行此脚本
|
|
if __name__ == '__main__':
|
|
motion_apply() |