Renders an image or a sequence using the OGS rendering engine
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
activeRenderOverride (cro) | unicode | ||
availableRenderOverrides (aro) | bool | ||
batchMode (bm) | bool | ||
When turned on, means the action will be run in batch mode. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
camera (cam) | unicode | ||
|
|||
currentFrame (cf) | bool | ||
currentView (cv) | bool | ||
|
|||
fileName (fn) | unicode | ||
|
|||
frame (f) | float | ||
height (h) | int | ||
|
|||
layer (l) | PyNode | ||
noRenderView (nrv) | bool | ||
width (w) | int | ||
|
Derived from mel command maya.cmds.ogsRender
Example:
import pymel.core as pm
# Create a poly sphere.
pm.polySphere()
# Render it
# It will try to save the image with format according
# to the file name extension.
pm.ogsRender(w=480,h=270,fn="c:\\hello.jpg")
pm.ogsRender(w=480,h=270,fn="c:\\hello.bmp")