Edit the parameter values common to all display layers. Some of these paremeters, eg. baseId and mergeType, are stored as preferences and some, eg. currentDisplayLayer, are stored in the file.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
baseId (bi) | int | ||
|
|||
currentDisplayLayer (cdl) | PyNode | ||
|
|||
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.editDisplayLayerGlobals
Example:
import pymel.core as pm
import maya.cmds as cmds
pm.editDisplayLayerGlobals( cdl='displayLayer1' )
pm.editDisplayLayerGlobals( query=True, cdl=True )
# Result: displayLayer1
pm.editDisplayLayerGlobals( 'bi', query=True )
# Result: 10
pm.editDisplayLayerGlobals( useCurrent='on' )