pymel.core.general.editDisplayLayerGlobals¶
- editDisplayLayerGlobals(*args, **kwargs)¶
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.
Flags:
Long Name / Short Name Argument Types Properties baseId / bi int Set base layer ID. This is the number at which new layers start searching for a unique ID. currentDisplayLayer / cdl PyNode Set current display layer; ie. the one that all new objects are added to. mergeType / mt int Set file import merge type. Valid values are 0, none, 1, by number, and 2, by name. useCurrent / uc bool Set whether or not to enable usage of the current display layer as the destination for all new nodes. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.editDisplayLayerGlobals
Example:
import pymel.core as pm pm.editDisplayLayerGlobals( cdl='displayLayer1' ) pm.editDisplayLayerGlobals( query=True, cdl=True ) # Result: displayLayer1 pm.editDisplayLayerGlobals( 'bi', query=True ) # Result: 10 pm.editDisplayLayerGlobals( useCurrent='on' )