pymel.core.rendering.batchRender¶
- batchRender(*args, **kwargs)¶
The batchRender command is used to spawn off a separate rendering session of the current maya file. If no mayaFile is specified, it’ll ask you whether you want the current job killed. The batchRender will spawn a separate maya process in which commands will be communicated to it through a commandPort. If Maya is unable to find an available port an error will be produced. Maya will attempt to use ports 7835 through 7844.
Flags:
Long Name / Short Name Argument Types Properties filename / f unicode Filename to be rendered; if empty, a temporary filename will be created. melCommand / mc unicode Mel command to execute to run a renderer other than the software renderer. numProcs / n int Number of processors to use (0 means use all available processors). preRenderCommand / prc unicode Command to be run prior to invoking mentalray standalone renderer. remoteRenderMachine / rm unicode Name of remote render machine. Not available on Windows. renderCommandOptions / rco unicode Arguments to the render command for mentalray standalone rendering. showImage / si bool Show progress of the current rendering job. status / st unicode useRemoteRender / um bool If remote rendering is desired. Not available on Windows. useStandalone / us bool Batch rendering is to be done with mentalray standalone verbosity / v int Defines the verbosity level to report the batch rendering status:1: display only one start message, then one message when all frames are rendered.2: display only start and end frame messages.3: display all messages (default).Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.batchRender
Example:
import pymel.core as pm pm.batchRender() pm.batchRender( 'mayafile' )