OK, so you are working in a project, you have your camera moves, animations, lighting, and texturing all ready for a batch render. While it's possible to batch render from within Maya, this approach is incredibly inefficient. In reality, rendering anything other than previews in Maya is inefficient. The reason for this is that the Renderer and Maya are actually separate programs. So by rendering with Maya open you are going to be needlessly clogging your systems memory. On large scenes there is often no other alternative than rendering from the Command Line. As your work in Maya progresses you might end up working on scenes that can take 5-10+ minutes to simply OPEN. Rendering from the command line allows you to render whatever you specify without ever opening Maya.
The easiest way to begin Command Line rendering is to, from within Maya, open the scene you want to render and set all the render settings to how you'd like them. I.e.:
File Name Prefix: I recommend using the camera name you are rendering from (you are using dedicated cameras for rendering, right?)
Frame/Animation ext: name.#.ext, or name_#.ext
Image Format: LOSSLESS FORMATS ONLY (EXR, Targa or Tiff generally)
Start Frame: Whatever frame in the timeline you want the animation render to start
End Frame: Whatever frame in the timeline you want the animation render to end
By Frame: 1 usually; 2 is sometimes used if you want to render every other frame for a preview
Frame Padding: How many number spaces are in the .ext of the frame render names. Let’s say you have 350 frames you want to render – use 3 for the frame padding. That way the files will then start with frame number 001 and end at frame 350. Compositing programmes will be sure to understand the numbering this way.
Renderable Camera: BE SURE TO SET THIS TO THE RIGHT CAMERA FOR THE ANIMATION!
- Alpha Channel (mask) checked – on – if you are going to composite
- Depth Channel (zDepth) checked – on – if you are going to do depth of field, etc. in post-production
And finally, set the Render quality levels for whatever Renderer you want to use. Save your scene after the render settings are all perfect. |