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 ../../../_images/create.gif ../../../_images/query.gif
 
Set base layer ID. This is the number at which new layers start searching for a unique ID.
currentDisplayLayer (cdl) PyNode ../../../_images/create.gif ../../../_images/query.gif
 
Set current display layer; ie. the one that all new objects are added to.
mergeType (mt) int ../../../_images/create.gif ../../../_images/query.gif
 

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 ../../../_images/create.gif ../../../_images/query.gif
 
Set whether or not to enable usage of the current display layer as the destination for all new nodes.

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' )

Previous topic

pymel.core.general.duplicate

Next topic

pymel.core.general.editDisplayLayerMembers

Core

Core Modules

Other Modules

This Page