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.
Set by string or name value
Set by order in drop-down list
Retrieve nth object in set
<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.
NEW in 3ds Max 9: Returns true if the selection set is deleted, false of it exists.
b = box()
à $Box:Box01 @ [0.000000,0.000000,0.000000]
selectionSets["boxes"] = #(b)
à #($Box:Box01 @ [0.000000,0.000000,0.000000])
nss.name = "one box"
à "one box"
à "one box"
deleteItem selectionsets nss
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.