Go to: Synopsis. Return value. Related.
Flags. MEL
examples.
listSets [-allSets] [-extendToShape] [-object name] [-type uint] [object]
listSets is undoable, NOT queryable, and NOT
editable.
The listSets command is used to get a list of all the sets an
object belongs to. To get sets of a specific type for an object use
the type flag as well. To get a list of all sets in the scene then
don't use an object in the command line but use one of the flags
instead.
string[] |
(string array of all sets the object belongs to) |
sets
allSets, extendToShape, object, type
Long name (short name) |
Argument types |
Properties |
-allSets(-as) |
|
|
|
Returns all sets in the scene. |
|
-type(-t) |
uint |
|
|
Returns all sets in the scene of the given type:
- 1 - all rendering sets
- 2 - all deformer sets
|
|
-extendToShape(-ets) |
|
|
|
When requesting a transform's sets also walk down to the shape
immediately below it for its sets. |
|
-object(-o) |
name |
|
|
Returns all sets which this object is a member of. |
|
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. |
// Get a list of all the sets which `nurbsSphere1` belongs to:
listSets -object nurbsSphere1;
// Get a list of all the deformer sets in the scene:
listSets -type 2;
// Get a list of all the rendering sets which `coneShape1` belongs to:
listSets -type 1 -object coneShape1;