sets is undoable, queryable, and editable.
This command is used to create a set, query some state of
a set, or perform operations to update the membership of a set.
A set is a logical grouping of an arbitrary collection of objects,
attributes, or components of objects. Sets are dependency nodes.
Connections from objects to a set define membership in the set.
In query mode, return type is based on queried flag.
Long name (short name) |
Argument types |
Properties |
|
-addElement(-add)
|
name
|
|
|
Adds the list of items to the given set. If some of the
items cannot be added to the set because they are in another
set which is in the same partition as the set to edit, the
command will fail.
|
|
-afterFilters(-af)
|
boolean
|
|
|
Default state is false. This flag is valid in edit mode only.
This flag is for use on sets that are acted on by deformers
such as sculpt, lattice, blendShape. The default edit mode
is to edit the membership of the group acted on by the deformer.
If you want to edit the group but not change the membership of
the deformer, set the flag to true.
|
|
-clear(-cl)
|
name
|
|
|
An operation which removes all items from the given set making
the set empty.
|
|
-color(-co)
|
int
|
|
|
Defines the hilite color of the set. Must be a value in
range [-1, 7] (one of the user defined colors). -1 marks the
color has being undefined and therefore not having any affect.
Only the vertices of a vertex set will be displayed in this
color.
|
|
-copy(-cp)
|
name
|
|
|
Copies the members of the given set to a new set.
This flag is for use in creation mode only.
|
|
-edges(-eg)
|
boolean
|
|
|
Indicates the new set can contain edges only.
This flag is for use in creation or query mode only.
The default value is false.
|
|
-editPoints(-ep)
|
boolean
|
|
|
Indicates the new set can contain editPoints only.
This flag is for use in creation or query mode only.
The default value is false.
|
|
-empty(-em)
|
|
|
|
Indicates that the set to be created should be empty. That is,
it ignores any arguments identifying objects to be added to
the set. This flag is only valid for operations that create a new set.
|
|
-facets(-fc)
|
boolean
|
|
|
Indicates the new set can contain facets only.
This flag is for use in creation or query mode only.
The default value is false.
|
|
-flatten(-fl)
|
name
|
|
|
An operation that flattens the structure of the given set.
That is, any sets contained by the given set will be replaced by
its members so that the set no longer contains other sets but
contains the other sets' members.
|
|
-forceElement(-fe)
|
name
|
|
|
For use in edit mode only. Forces addition of the items
to the set. If the items are in another set which is in the
same partition as the given set, the items will be removed
from the other set in order to keep the sets in the partition
mutually exclusive with respect to membership.
|
|
-include(-in)
|
name
|
|
|
Adds the list of items to the given set. If some of the
items cannot be added to the set, a warning will be issued.
This is a less strict version of the -add/addElement operation.
|
|
-intersection(-int)
|
name
|
|
|
An operation that returns a list of items which are members of
all the sets in the list.
|
|
-isIntersecting(-ii)
|
name
|
|
|
An operation which tests whether the sets in the list have
common members.
|
|
-isMember(-im)
|
name
|
|
|
An operation which tests whether all the given items
are members of the given set.
|
|
-layer(-l)
|
boolean
|
|
|
-name(-n)
|
string
|
|
|
Assigns string as the name for a new set. This flag is
only valid for operations that create a new set.
|
|
-noSurfaceShader(-nss)
|
boolean
|
|
|
If set is renderable, do not connect it to the default surface
shader. Flag has no meaning or effect for non renderable sets.
This flag is for use in creation mode only.
The default value is false.
|
|
-noWarnings(-nw)
|
|
|
|
Indicates that warning messages should not be reported such
as when trying to add an invalid item to a set. (used by UI)
|
|
-nodesOnly(-no)
|
|
|
|
This flag is usable with the -q/query flag but is ignored if
used with another queryable flags. This flag modifies the results
of the set membership query such that
when there are attributes (e.g. sphere1.tx) or components of
nodes included in the set, only the nodes will be listed.
Each node will only be listed once, even if more than one attribute
or component of the node exists in the set.
|
|
-remove(-rm)
|
name
|
|
|
Removes the list of items from the given set.
|
|
-renderable(-r)
|
boolean
|
|
|
This flag indicates that a special type of set should
be created. This type of set (shadingEngine as opposed to
objectSet) has certain restrictions on its membership in that
it can only contain renderable elements such as lights and
geometry. These sets are referred to as shading groups and
are automatically connected to the "renderPartition" node when
created (to ensure mutual exclusivity of the set's members with
the other sets in the partition).
This flag is for use in creation or query mode only.
The default value is false which means a normal set is
created.
|
|
-size(-s)
|
|
|
|
Use the size flag to query the length of the set.
|
|
-split(-sp)
|
name
|
|
|
Produces a new set with the list of items and removes
each item in the list of items from the given set.
|
|
-subtract(-sub)
|
name
|
|
|
An operation between two sets which returns the members of the
first set that are not in the second set.
|
|
-text(-t)
|
string
|
|
|
Defines an annotation string to be stored with the set.
|
|
-union(-un)
|
name
|
|
|
An operation that returns a list of all the members of all sets
listed.
|
|
-vertices(-v)
|
boolean
|
|
|
Indicates the new set can contain vertices only.
This flag is for use in creation or query mode only.
The default value is false.
|
|