pymel.core.rendering.ogsRender

static rendering.ogsRender(*args, **kwargs)

Renders an image or a sequence using the OGS rendering engine

Flags:
Long name (short name) Argument Types Properties
activeRenderOverride (cro) unicode  
   
availableRenderOverrides (aro) bool  
   
batchMode (bm) bool ../../../_images/create.gif ../../../_images/query.gif
 

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 ../../../_images/create.gif ../../../_images/query.gif
 
Specify the camera to use. Use the first available camera if the camera given is not found.
currentFrame (cf) bool  
   
currentView (cv) bool ../../../_images/create.gif ../../../_images/query.gif
 
When turned on, only the current view will be rendered.
fileName (fn) unicode ../../../_images/create.gif ../../../_images/query.gif
 
Specify the output file name. It will try to save the image with format according to the file name extension.
frame (f) float  
   
height (h) int ../../../_images/create.gif ../../../_images/query.gif
 
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  
   
noRenderView (nrv) bool  
   
width (w) int ../../../_images/create.gif ../../../_images/query.gif
 
The width flag pass the width to the ogsRender command. If not used, the width is taken from the render globals settings.

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

Previous topic

pymel.core.rendering.nodePreset

Next topic

pymel.core.rendering.orbit

Core

Core Modules

Other Modules

This Page