Remember, the flags are only overrides – all the other settings are going to be read from the Render Settings window of the file!
Let’s say you want to specify a different camera for the render: Render -r mr -cam persp yourFileName.mb
Here is the official point where this gets cool!
Let’s say you want to render hundreds of images for your animation while you continue working on your term paper and listening to music. You can tell the renderer how many of your processors to use. So I am running a dual-core CPU in my home machine; by specifying 1 processor, I have been rendering out hundreds of images while I worked on this PDF! Note the different flags for Mental Ray and Maya. On a quad core, you could use two or three processors and still work on other stuff.
Render -n 1 yourFileName.mb // this renders with one processor using the Maya Renderer
Render -rt 1 -r mr yourFileName.mb // this renders with one processor using Mental Ray
Remember how you made all those extra folders in your project’s images directory for all the camera shots you intended on rendering? Unfortunately, the images folder you specify in the Maya Project window is UNIVERSAL for the project. What that means is you can't just open each individual shot file and change the image folder – it will change it for every other file in the scene.
This is how you direct the images into them. I am going to direct my gears.mb renders to a folder named “gearPanAndZoom”:
Render -r mr -rd DIGM211\ MidTerm\images\gearPanAndZoom gears.mb
And here is where it all comes together! Let’s say you want to render every single shot in your animation and go home to get some sleep. What a concept?! Open up Notepad; we are going to create a batch script – a simple executable file that will run shell commands in order with very little work from you. For this you don't even have to open the command prompt window (Fig.16). |