Page 1 of 1

Exporting MXS sequences via mayabatch

Posted: Wed Jan 12, 2011 8:33 pm
by dmeyer
Hello,

I am trying to automate the mxs export process so I can run it on our farm to speed things up.

I am trying the following as a test:

"C:\Program Files\Autodesk\Maya2011\bin\mayabatch.exe" -file "D:\path\to\file.mb" -command 'file -force -options "useActiveCam=1;animation=1;protection=0;packngo=0;" -type "MaxwellScene" -pr -ea "D:/Test.mxs"'

and getting various errors such as "Invalid use of maya object "animation".

Before I dig into this further, is exporting via mayabatch.exe even possible? Does mayabatch load the maxwell plugin? Our other renderers seem to load because it shows up in the log. I'd prefer not to bring up an entire GUI instance of maya.exe because it eats an entire float license of Maya.

Re: Exporting MXS sequences via mayabatch

Posted: Thu Jan 13, 2011 2:01 pm
by Mihnea Balta
You can use the batch render utility to perform an export-only run (-eo flag), something like this:
Code: Select all
render.exe -r maxwell -mxs "c:\path\to\file.mxs" -eo 1 "c:\path\to\scene.mb"
This will in turn start mayabatch.exe, but I don't know the exact arguments it passes to it.

Re: Exporting MXS sequences via mayabatch

Posted: Thu Mar 17, 2011 12:28 am
by dmeyer
Hey all,

I finally got this working, but our implementation is a bit Qube-specific. PM me if you'd like instructions.