The render command is used to start off a MayaSoftware rendering session of the currently active camera. If a rendering is already in progress, then this command stops the rendering. This command is not undoable.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
abortMissingTexture (amt) | bool | ||
|
|||
batch (b) | bool | ||
Run in batch mode. Compute the images for all renderable cameras. This is the mel equivalent of running maya in batch mode with the -render flag set. All other flags are ignored when -batch is used. |
|||
keepPreImage (kpi) | bool | ||
|
|||
layer (l) | unicode | ||
Render the specified render layer. Only this render layer will be rendered, regardless of the renderable attribute value of the render layer. The layer name will be appended to the output image file name. The specified render layer becomes the current render layer before rendering, and remains as current render layer after the rendering.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
nglowpass (ngl) | bool | ||
|
|||
nshadows (nsh) | bool | ||
|
|||
replace (rep) | bool | ||
|
|||
xresolution (x) | int | ||
|
|||
yresolution (y) | int | ||
|
Derived from mel command maya.cmds.render
Example:
import pymel.core as pm
pm.render()
# Result: u'/Volumes/newhome/chad/Documents/maya/projects/default/images/tmp/untitled.iff' #
cam = pm.camera()
pm.render( cam[0], x=768, y=576 )
# Result: u'/Volumes/newhome/chad/Documents/maya/projects/default/images/tmp/untitled.iff' #