参考了这里的文章
http://www.cnblogs.com/Jedimaster/archive/2010/02/09/1666361.html
如何不打开maya而操作maya的文件呢?这是maya library mode
在maya\devkit\application下有几个例子
MAYA_LOCATION=d:\Program Files\Autodesk\Maya2009
PYTHONHOME=d:\Program Files\Autodesk\Maya2009\Python
PYTHONPATH=d:\Program Files\Autodesk\Maya2009\bin\Python25.zip;d:\Program Files\Autodesk\Maya2009\Python\lib\site-packages
PYTHONHOME=d:\Program Files\Autodesk\Maya2009\Python
PYTHONPATH=d:\Program Files\Autodesk\Maya2009\bin\Python25.zip;d:\Program Files\Autodesk\Maya2009\Python\lib\site-packages
同时对于asciiToBinary.exe,参数里文件名应该用绝对路径,例如:
asciiToBinary.exe "D:/Program Files/Autodesk/Maya2009/devkit/applications/cube.ma"
http://www.pdipierro.com/tutorials/MayaDOSRenderTutorial.html
http://cg.tutsplus.com/tutorials/autodesk-maya/quick-tip-render-faster-using-the-windows-command-line-with-maya/
http://www.3dtotal.com/index_tutorial_detailed.php?id=505#.Tu4oHno4ctA
转载请注明出处