Page 1 of 1

Exporting mxs using command line

Posted: Fri Oct 08, 2010 4:55 pm
by Jalixko
I am trying to export MXS files from a maya scene using the maya batch mode.
This is my command line:
maya -batch -file V:\BMDI\ren\scenes\RENDER\SQ_02\SQ02_P02\SQ02_P02_REN_V099.mb -command file -op "camera=CAM_02_02Shape;animation=1;protection=0;packngo=0;" -typ "MaxwellScene" -pr -ea "V:/BMDI/ren/kk.mxs
It seems to not be the correct way to do it, I must have a syntax error. Should I script the mel commands in a mel file? Anyone have any experience on this?

Solved: Exporting mxs using command line

Posted: Fri Oct 08, 2010 6:30 pm
by Jalixko
Ok, I founded the way:
Create a mel file called exportTOmxs.mel that would contains next line:
file -op "camera=nameCamera;animation=1;protection=0;packngo=0;" -typ "MaxwellScene"" -pr -ea "../nameFile.mxs";
Execute this command line in a shell:
maya -batch -file ..\...\file.mb -log "...\...\exportTOmxs.log"" -script "...\...\exportTOmxs.mel" -command "...\..\exportTOmxs.mel"