Edit the parameter values common to all render layers. Some of these paremeters, eg. baseId and mergeType, are stored as preferences and some, eg. currentRenderLayer, are stored in the file.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
baseId (bi) | int | ||
|
|||
currentRenderLayer (crl) | PyNode | ||
Set current render layer. This will will update the renderLayerManger and all DAG objects to identify them as members of the render layer. This flag may also be used in conjunction with “useCurrent” to automatically add new DAG objects to the active layer. The “isCurrentRenderLayerChanging” condition can be used to determine when the current layer is being changed and adjustments are being applied to the scene. |
|||
enableAutoAdjustments (eaa) | bool | ||
Set whether or not to enable automatic creation of adjustments when certain attributes (ie. surface render stats, shading group assignment, or render settings) are changed. |
|||
mergeType (mt) | int | ||
Set file import merge type. Valid values are 0, none, 1, by number, and 2, by name.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
useCurrent (uc) | bool | ||
|
Derived from mel command maya.cmds.editRenderLayerGlobals
Example:
import pymel.core as pm
pm.editRenderLayerGlobals( currentRenderLayer='layer1' )
pm.editRenderLayerGlobals( query=True, currentRenderLayer=True )
# Result: layer1
pm.editRenderLayerGlobals( query=True, baseId=True )
# Result: 1
pm.editRenderLayerGlobals( useCurrent=True )
# Enable automatic creation of adjustments
pm.editRenderLayerGlobals( enableAutoAdjustments=True )