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 )