AdamMax
11-09-2010, 11:08 PM
Hi guys,
I've written a python script that iterates through a series of folders and exports all the files found within. The script launches Maya from the command line as below
maya -file "c:\tmp\sourcefile.mb" -command 'file -force -options "" -type "customExportType" -pr -ea "c:/export/exportfile.extension"' -prompt
I can't figure out how to close each Maya command line session after export.
I added quit -force to the end of the above command but that just closed Maya before it had a chance to export.
Is there a way I could get confirmation from Maya that it has exported then force the close?
p.s. I'm very inexperienced with MEL
Thanks in advance,
Adam
I've written a python script that iterates through a series of folders and exports all the files found within. The script launches Maya from the command line as below
maya -file "c:\tmp\sourcefile.mb" -command 'file -force -options "" -type "customExportType" -pr -ea "c:/export/exportfile.extension"' -prompt
I can't figure out how to close each Maya command line session after export.
I added quit -force to the end of the above command but that just closed Maya before it had a chance to export.
Is there a way I could get confirmation from Maya that it has exported then force the close?
p.s. I'm very inexperienced with MEL
Thanks in advance,
Adam
