Renders an image or a sequence using the OGS rendering engine
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
activeMultisampleType (mst) | unicode | ||
|
|||
activeRenderOverride (cro) | unicode | ||
|
|||
activeRenderTargetFormat (fpt) | unicode | ||
Query the current active floating point target format.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
availableFloatingPointTargetFormat (afp) | bool | ||
|
|||
availableMultisampleType (amt) | bool | ||
|
|||
availableRenderOverrides (aro) | bool | ||
|
|||
camera (cam) | unicode | ||
|
|||
currentFrame (cf) | bool | ||
|
|||
currentView (cv) | bool | ||
|
|||
enableFloatingPointRenderTarget (efp) | bool | ||
|
|||
enableMultisample (ems) | bool | ||
|
|||
frame (f) | float | ||
|
|||
height (h) | int | ||
|
|||
layer (l) | PyNode | ||
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. |
|||
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 saved in render globals.
pm.ogsRender(w=480,h=270)
pm.ogsRender(w=480,h=270)