Go to: Synopsis. Return value. Keywords. Related. Flags. MEL examples.
editDisplayLayerMembers [-clear] [-fullNames] [-noRecurse] [-ufeObjects]
editDisplayLayerMembers is undoable, queryable, and NOT editable.
This command is used to query and edit membership of display layers. No
equivalent 'remove' command is necessary since all objects must be in exactly
one display layer. Removing an object from a layer can be accomplished by
adding it to a different layer.
int | Number of objects added to the layer |
string[] | Query: List of objects in layer |
In query mode, return type is based on queried flag.
displayLayer, display, layer, member, relationship
createDisplayLayer, editDisplayLayerGlobals, layerButton
clear, fullNames, noRecurse, ufeObjects
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 be used more than once in a command.
|
editDisplayLayerMembers displayLayer1 sphere1 cone1;
// Result : 2
editDisplayLayerMembers -q displayLayer1;
// Result : sphere1 cone1
editDisplayLayerMembers displayLayer1 expression1 sphere2;
// Warning : Only DAG objects can be in a display layer. 'expression1' ignored.
// Result : 1
editDisplayLayerMembers -noRecurse layer1 `ls -selection -ufe`;
// Result: 1
editDisplayLayerMembers -clear layer1;
// Result: 1