pymel.core.rendering.ogsRender¶
- ogsRender(*args, **kwargs)¶
Renders an image or a sequence using the OGS rendering engine
Flags:
Long Name / Short Name Argument Types Properties activeMultisampleType / mst unicode Query the current active multisample type. activeRenderOverride / cro unicode Set or query the current active render override. activeRenderTargetFormat / fpt unicode Query the current active floating point target format. availableFloatingPointTargetFormat / afp bool Returns the names of available floating point render target format. availableMultisampleType / amt bool Returns the names of available multisample type. availableRenderOverrides / aro bool Returns the names of available render overrides. camera / cam unicode Specify the camera to use. Use the first available camera if the camera given is not found. currentFrame / cf bool Render the current frame. currentView / cv bool When turned on, only the current view will be rendered. enableFloatingPointRenderTarget / efp bool Enable/disable floating point render target. enableMultisample / ems bool Enable/disable multisample. frame / f float Specify the frame to render. height / h int The height flag pass the height to the ogsRender command. If not used, the height is taken from the render globals settings. 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 When turned on, the render view is not updated after image computation width / w int The width flag pass the width to the ogsRender command. If not used, the width is taken from the render globals settings. Flag can have multiple arguments, passed either as a tuple or a list. 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)