The right way to maya batch?
Posted: Sun Apr 09, 2017 8:11 pm
Hello there !
I used cgru for blender since a few years with happiness but now I've to work with Maya.
I would like to Maya batch some alembic export. I've written a little python script and everything runs fine when I launch Maya batch in CLI, like this :
mayabatch ls2_ch_jessica_mdl.ma -command "python (\"import publish.exporters as exp; exp.abcModelingExport('S:/output.abc')\")"
But when I try to use afanasy(I create the job with Python), I've got no abc output, and the task log show an error of python environment, preventing Maya batch to get Maya module.
I tried to setup PYTHONHOME with the block.setEnv , but it doesn't work.
Soooo... What should I do to launch a basic command line in Afanasy?
I used cgru for blender since a few years with happiness but now I've to work with Maya.
I would like to Maya batch some alembic export. I've written a little python script and everything runs fine when I launch Maya batch in CLI, like this :
mayabatch ls2_ch_jessica_mdl.ma -command "python (\"import publish.exporters as exp; exp.abcModelingExport('S:/output.abc')\")"
But when I try to use afanasy(I create the job with Python), I've got no abc output, and the task log show an error of python environment, preventing Maya batch to get Maya module.
I tried to setup PYTHONHOME with the block.setEnv , but it doesn't work.
Soooo... What should I do to launch a basic command line in Afanasy?