By dmeyer
#336089
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.
#336107
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.
Maxwell Rhino 5.2.6.8 plugin with macOS Tahoe 26

Grazie Ferdinando, prima di aggiornare il Tahoe 26[…]

So, is this a known issue?