Maya 后台批处理(测试用)

tech2022-12-27  132

import subprocess mayabatch = (os.getcwd() + "/mayabatch.exe").replace("\\", "/") filePath = "D:/temp/check5/check5_v01.ma" scriptFile = 'python(\\"__import__(\'Checks\').cleanScene()\\")' command = ('%s -file "%s" -command "%s"' % (mayabatch, filePath, scriptFile)) print command subprocess.check_call(command)
最新回复(0)