pymel.core.rendering.batchRender

static rendering.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 ../../../_images/create.gif
 
Filename to be rendered; if empty, a temporary filename will be created.
melCommand (mc) unicode ../../../_images/create.gif
 
Mel command to execute to run a renderer other than the software renderer.
numProcs (n) int ../../../_images/create.gif
 
Number of processors to use (0 means use all available processors).
preRenderCommand (prc) unicode ../../../_images/create.gif
 
Command to be run prior to invoking mentalray standalone renderer.
remoteRenderMachine (rm) unicode ../../../_images/create.gif
 
Name of remote render machine. Not available on Windows.
renderCommandOptions (rco) unicode ../../../_images/create.gif
 
Arguments to the render command for mentalray standalone rendering.
showImage (si) bool ../../../_images/create.gif
 
Show progress of the current rendering job.
status (st) unicode  
   
useRemoteRender (um) bool ../../../_images/create.gif
 
If remote rendering is desired. Not available on Windows.
useStandalone (us) bool ../../../_images/create.gif
 
Batch rendering is to be done with mentalray standalone
verbosity (v) int ../../../_images/create.gif
 

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' )

Previous topic

pymel.core.rendering.assignViewportFactories

Next topic

pymel.core.rendering.binMembership

Core

Core Modules

Other Modules

This Page