pymel.core.rendering.renderer

renderer(*args, **kwargs)

Command to register renders. This command allows you to specify the UI name and procedure names for renderers. The command also allow you to query the UI name and the procedure names for the registered renders. In query mode, return type is based on queried flag.

Flags:
Long name (short name) Argument Types Properties
addGlobalsNode (agn) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag allows the user to add a globals node the specified renderer uses.
addGlobalsTab (agt) unicode, unicode, unicode ../../../_images/create.gif ../../../_images/edit.gif
 
Add a tab associated with the specified renderer for the unified render globals window.
| .. |
bro)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the batch render options procedure associated with the specified renderer.
| .. |
bso)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the argument string that will be used with the command line utility ‘Render’ when doing a batch render
batchRenderProcedure (br) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Set or query the batch render procedure associated with the specified renderer.
| .. |
cbr)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query returns the cancel batch render procedure associated with the specified renderer.
| .. |
cir)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the change IPR region procedure associated with the specified renderer.
| .. |
cr)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the command line rendering procedure associated with the specified renderer.
exists (ex) bool ../../../_images/query.gif ../../../_images/edit.gif
 
The flag returns true if the specified renderer is registered in the registry, and it returns false otherwise.
globalsNodes (gn) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

This flag returns the list of render globals nodes the specified renderer uses.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

| .. |
gtc)** | bool | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
This flag returns the names of procedures which are used to create the unified render globals window tabs which are associated with the specified renderer.
globalsTabLabels (gtl) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag returns the labels of unified render globals window tabs which are associated with the specified renderer.
| .. |
gtu)** | bool | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
This flag returns the names of procedures which are used to update the unified render globals window tabs which are associated with the specified renderer.
iprOptionsMenuLabel (ipm) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Set or query the label for the IPR update options menu which is under the render view’s IPR menu.
iprOptionsProcedure (io) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Set or query the IPR render options procedure associated with the specified renderer.
| .. |
ips)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the procedure for creating the sub menu for the IPR update options menu which is under the render view’s IPR menu.
iprRenderProcedure (ipr) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Set or query the IPR render command associated with the specified renderer.
| .. |
irs)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the procedure for creating the sub menu for the IPR render menu which is under the render view’s IPR menu.
isRunningIprProcedure (isr) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Set or query the isRunningIpr command associated with the specified renderer.
logoCallbackProcedure (lgc) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

Set or query the procedure which is a callback associated to the logo for the specified renderer. For example, the logo and the callback can be used in the unified render globals window beside the “Render Using” optionMenu.

logoImageName (log) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Set or query the logo image name for the specified renderer. The logo is a image representing the renderer.
| .. |
ava)** | bool | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Returns the names of renderers which are currently registered.
| .. |
psi)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the pause IPR render procedure associated with the specified renderer.
polyPrelightProcedure (pp) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Set or query the polygon prelight procedure associated with the specified renderer.
| .. |
rfi)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the refresh IPR render procedure associated with the specified renderer.
| .. |
rd)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the render diagnostics procedure associated with the specified renderer.
| .. |
rg)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
This flag is obsolete. It will be removed in the next release.
renderMenuProcedure (rm) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag is obsolete. It will be removed in the next release.
| .. |
ro)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the render options procedure associated with the specified renderer.
renderProcedure (r) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Set or query the render command associated with the specified renderer.
renderRegionProcedure (rr) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Set or query the render region procedure associated with the specified renderer.
rendererUIName (ui) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Set or query the rendererUIName for the specified renderer. The rendererUIName is the name of the renderer as it would appear in menus.
| .. |
res)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the procedure reponsible for creating renderer specific editors submenu under the “Rendering Editors” menu for the specified renderer.
| .. |
brl)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the log file batch procedure associated with the specified renderer.
| .. |
sbr)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the show batch render procedure associated with the specified renderer.
| .. |
srl)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the log file render procedure associated with the specified renderer.
| .. |
sti)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the start IPR render procedure associated with the specified renderer.
| .. |
spi)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the stop IPR render procedure associated with the specified renderer.
| .. |
tb)** | unicode | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Set or query the texture baking procedure associated with the specified renderer.
unregisterRenderer (unr) bool ../../../_images/query.gif ../../../_images/edit.gif
 
Unregister the specified renderer.

Derived from mel command maya.cmds.renderer

Example:

import pymel.core as pm

import maya.cmds as cmds

# To register a renderer called "myRenderer":
#
pm.renderer( 'myRenderer' )
# To edit a renderer called "myRenderer" with its rendererUIName
# being "My Renderer":
#
pm.renderer( 'myRenderer', edit=True, rendererUIName='My Renderer' )
# To register a renderer called "anotherRenderer" with all
# its parameters specified.
#
pm.renderer( 'anotherRenderer', rendererUIName='Another Renderer', iprRenderProcedure='mayaSoftwareIprRender', -iprOptionsProcedure='', isRunningIprProcedure='mayaSoftwareIsRunningIpr', startIprRenderProcedure='mayaSoftwareStartIprRender', stopIprRenderProcedure='mayaSoftwareStopIprRender', refreshIprRenderProcedure='mayaSoftwareRefreshIprImage', pauseIprRenderProcedure='mayaSoftwarePauseIprRender', changeIprRegionProcedure='mayaSoftwareChangeIprRegion', iprOptionsMenuLabel='IPR Tuning Options', iprOptionsSubMenuProcedure='mayaSoftwareIprUpdateOptionsSubMenu', iprRenderSubMenuProcedure='mayaSoftwareIprUpdateRenderSubMenu', renderProcedure='mayaSoftwareRender', renderOptionsProcedure='RenderOptions', renderDiagnosticsProcedure='RenderDiagnostics', commandRenderProcedure='render -batch', batchRenderProcedure='BatchRender', batchRenderOptionsProcedure='BatchRenderOptions', batchRenderOptionsStringProcedure="mayaSoftwareBatchRenderOptionsString", cancelBatchRenderProcedure='CancelBatchRender', showBatchRenderProcedure='ShowBatchRender', showRenderLogProcedure='', showBatchRenderLogProcedure='', renderRegionProcedure='mayaRenderRegion', textureBakingProcedure='performConvertSolidTx', polyPrelightProcedure='performPrelight', renderingEditorsSubMenuProcedure='', logoImageName='', logoCallbackProcedure='' )
# To add a render globals node the renderer uses:
#
pm.renderer( 'anotherRenderer', edit=True, addGlobalsNode='defaultRenderGlobals' )
# To add the tabs associated with the specified renderer
# for the unified render globals window, use the syntax
#
#      renderer -edit
#               -addGlobalsTab globalsTabLabel
#                              globalsTabCreateProcName
#                              globalsTabUpdateProcName
#               renderer;
#
# where "globalsTabLabel" is the label of the tab,
# "globalsTabCreatedProcName" is the name of the mel procedure
# which is used to create the content in the tab.
# and "globalsTabCreatedProcName" is the name of the mel procedure
# which is used to update the content in the tab.
#
# Note that if you want to add a number of tabs, you need to repeat
# this renderer command for each tab you wish to add, as shown below.
#
pm.renderer( 'anotherRenderer', edit=True, addGlobalsTab=('Maya Software', 'createMayaSoftwareGlobalsTab', 'updateMayaSoftwareGlobalsTab') )
# To get a list of unified render globals window tab labels associated
# with the specified renderer.
#
pm.renderer( 'anotherRenderer', query=True, globalsTabLabels=True )
# To get a list of names of mel procedures which are used to
# create the unified render globals window tabs associated with
# the specified renderer.
#
pm.renderer( 'anotherRenderer', query=True, globalsTabCreateProcNames=True )
# To get a list of names of mel procedures which are used to
# update the unified render globals window tabs associated with
# the specified renderer.
#
pm.renderer( 'anotherRenderer', query=True, globalsTabUpdateProcNames=True )
# To view a list of registered renderers.
#
pm.renderer( query=True, namesOfAvailableRenderers=True )
# To check if anotherRenderer exists.
#
pm.renderer( 'anotherRenderer', exists=True )
# To view a list of render globals nodes used by the specified
# renderer:
#
pm.renderer( 'anotherRenderer', query=True, globalsNodes=True )

Previous topic

pymel.core.rendering.renderWindowEditor

Next topic

pymel.core.rendering.resolutionNode

Core

Core Modules

Other Modules

This Page