Go to: Synopsis. Flags. Return value. Keywords. Related. Python examples.
editDisplayLayerGlobals([baseId=int], [currentDisplayLayer=select], [mergeType=int], [useCurrent=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
editDisplayLayerGlobals is undoable, queryable, and NOT editable.
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.
baseId, currentDisplayLayer, mergeType, useCurrent
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
[bool]
Command success
[string]
Current display layer name, when querying
[int]
Merge type, when querying
[int]
Base ID, when querying
displayLayer, display, layer, globals, current, merge
createDisplayLayer, editDisplayLayerMembers, layerButton
import maya.cmds as cmds
cmds.editDisplayLayerGlobals( cdl='displayLayer1' )
cmds.editDisplayLayerGlobals( query=True, cdl=True )
# Result: displayLayer1
cmds.editDisplayLayerGlobals( 'bi', query=True )
# Result: 10
cmds.editDisplayLayerGlobals( useCurrent='on' )