A SelectionSet represents the named scene node selection sets in the Named Selection Sets drop-down list in the 3ds Max toolbar. Also see SelectionSetArray Values. SelectionSet values are mappable.
Constructors
selectionSets[<set_name>]
Set by string or name value
selectionSets[<index>]
Set by order in drop-down list
Operators
<selectionset>[<integer>]
Retrieve nth object in set
Properties
<selectionset>.center : Point3, read-only
Returns center of bounding box of all objects in set.
<selectionset>.max : Point3, read-only
Returns maximum corner of bounding box.
<selectionset>.min : Point3, read-only
Returns minimum corner of bounding box.
<selectionset>.count : Integer, read-only
Returns number of objects in set.
<selectionset>.name : String
NEW in 3ds Max 9: Get/Set the name of the selection set. This means that you can now rename an existing named selection set instead of destroying it and creating it again.
Methods
isDeleted <selectionset>
NEW in 3ds Max 9: Returns true if the selection set is deleted, false of it exists.
example:
b = box()
à $Box:Box01 @ [0.000000,0.000000,0.000000]
selectionSets["boxes"] = #(b)
à #($Box:Box01 @ [0.000000,0.000000,0.000000])
nss = selectionSets["boxes"]
à SelectionSet:boxes
nss.name
à "boxes"
isdeleted nss
à false
nss.name = "one box"
à "one box"
nss.name
à "one box"
deleteItem selectionsets nss
à OK
isDeleted nss
à true
Note:
Unlike ObjectSet, you cannot use SelectionSet as the root of a pathname.
The order of sequencing is consistent in a stable scene but somewhat arbitrary - it depends on how 3ds Max stores its object hierarchy internally which is effected mostly by order of additions and deletions to and from the scene.
See Also