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.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
addGlobalsNode (agn) | unicode | ||
|
|||
addGlobalsTab (agt) | unicode, unicode, unicode | ||
|
|||
batchRenderOptionsProcedure (bro) | unicode | ||
|
|||
batchRenderOptionsStringProcedure (bso) | unicode | ||
|
|||
batchRenderProcedure (br) | unicode | ||
|
|||
cancelBatchRenderProcedure (cbr) | unicode | ||
|
|||
changeIprRegionProcedure (cir) | unicode | ||
|
|||
commandRenderProcedure (cr) | unicode | ||
|
|||
exists (ex) | bool | ||
|
|||
globalsNodes (gn) | bool | ||
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. |
|||
globalsTabCreateProcNames (gtc) | bool | ||
|
|||
globalsTabLabels (gtl) | bool | ||
|
|||
globalsTabUpdateProcNames (gtu) | bool | ||
|
|||
iprOptionsMenuLabel (ipm) | unicode | ||
|
|||
iprOptionsProcedure (io) | unicode | ||
|
|||
iprOptionsSubMenuProcedure (ips) | unicode | ||
|
|||
iprRenderProcedure (ipr) | unicode | ||
|
|||
iprRenderSubMenuProcedure (irs) | unicode | ||
|
|||
isRunningIprProcedure (isr) | unicode | ||
|
|||
logoCallbackProcedure (lgc) | unicode | ||
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 | ||
|
|||
namesOfAvailableRenderers (ava) | bool | ||
|
|||
pauseIprRenderProcedure (psi) | unicode | ||
|
|||
polyPrelightProcedure (pp) | unicode | ||
|
|||
refreshIprRenderProcedure (rfi) | unicode | ||
|
|||
renderDiagnosticsProcedure (rd) | unicode | ||
|
|||
renderGlobalsProcedure (rg) | unicode | ||
|
|||
renderMenuProcedure (rm) | unicode | ||
|
|||
renderOptionsProcedure (ro) | unicode | ||
|
|||
renderProcedure (r) | unicode | ||
|
|||
renderRegionProcedure (rr) | unicode | ||
|
|||
rendererUIName (ui) | unicode | ||
|
|||
renderingEditorsSubMenuProcedure (res) | unicode | ||
|
|||
showBatchRenderLogProcedure (brl) | unicode | ||
|
|||
showBatchRenderProcedure (sbr) | unicode | ||
|
|||
showRenderLogProcedure (srl) | unicode | ||
|
|||
startIprRenderProcedure (sti) | unicode | ||
|
|||
stopIprRenderProcedure (spi) | unicode | ||
|
|||
textureBakingProcedure (tb) | unicode | ||
|
|||
unregisterRenderer (unr) | bool | ||
|
Derived from mel command maya.cmds.renderer
Example:
import pymel.core as pm
# 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 )