我正在尝试使用 maya 的 python 解释器运行 python 脚本。我正在编写此脚本以放置在管道中,以便 Maya 以批处理模式运行。当我运行这个命令时什么都没有发生:
maya -batch -script maya.py $1
我还尝试将 python 解释器直接与测试文件一起使用
/Applications/Autodesk/maya2017/Maya.app/Contents/bin/mayapy test.py
test.py 看起来像这样
`import maya.standalone
try:
maya.standalone.initialize()
except:
print "standalone already running"`
我收到此错误ImportError: No module named cmds
我看过这篇文章,但它对我没有帮助。我究竟做错了什么?