PDA

View Full Version : Command line rendering quit


flore33
02-27-2008, 05:20 PM
Hi,

I am using a Mac pro and run Maya on Windows through boot camp.
I am trying to render multiples scenes with Mental ray throught a command line, but it loads and quits straigh away.
render -r mr -n 0 -s 1 -e 2 -cam camera2 -rd C:\images\promo\scene01\ -log C:\ error.log C: \scenes\promo\scene01_B_TV.ma
the file is name batch.bat, i double click it, and I have verify that I don't have any corrupted camera.

What am I doing wrong?

Thanks

tribuanimal
02-27-2008, 06:43 PM
hi ...

I think that can be the space between the C:\ and error.log " C:\ error.log " ... and why you don't have the scene file on the same structure of the project folder " -rd C:\images\promo\scene01\ "? ...

maybe can help you to put the command " pause " at the end of your batch file, so if something go wrong then you can see if Maya tell that don't recognize command ...

good luck

flore33
02-28-2008, 09:46 AM
Hi,

How do you write the command pause at the end of a batch.
Thanks

tribuanimal
02-28-2008, 10:01 AM
hi ...

just open your batch.bat with for any text editor and put " pause " below the render line command:


render -r mr -n 0 -s 1 -e 2 -cam camera2 -rd C:\images\promo\scene01\ -log C:\error.log C:\scenes\promo\scene01_B_TV.ma

pause


of course, save and close ... if the render goes wrong, then you can see what Maya don't like on your render line command ...

then, just press any key for to close the command window ...

remember to check the spaces between C:\ and the folders or files :scream: ...

good luck

flore33
02-28-2008, 02:55 PM
Hi,

that's what I exactly write in my batch, It does pause and say
More than one file is not allowed: settings\fricher\my...
What that's mean?
render -r mr -s 1 -e 2 -cam camera2 -rd C:\Documents and Settings\fricher\My Documents\flo\TV_product\images\promo\scene01 C:\Documents and Settings\fricher\My Documents\flo\TV_product\scenes\promo\scene01_B_TV.ma
pause

Thanks for helping me.

tribuanimal
02-28-2008, 03:25 PM
ok, i think for sure the problem are the spaces between your folder names, because when you do the render command line, and they are any space character between folder names or scene names, then Maya tell you this message error about more than one name is not allowed ... Maya are looking for a simple arguments after the flags, and as Maya found two or more then don't continue with the scene rendering ...

for example in here: " C:\Documents and Settings\fricher\My Documents\flo\TV_product\images\promo\scene01 ", you have 3 spaces between names ...

please, avoid the space character in anything about Maya ... if you need some type of character like an space then use for example the " _ " character ... also the " - " is not allowed, and some other special characters ... look at the help ...

so, do a folder in your hard disk without any space on the folder name, and do it again with all your scene elements on it ...

hope I've explained well :) ...

flore33
02-28-2008, 05:05 PM
many thanks, it works now.

CGTalk Moderation
02-28-2008, 05:05 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.