Notifications
Clear all
[Closed] Hide/Unhide named selection set
Nov 08, 2007 7:19 am
Hello,
I need your help !!!
I need to select a named selection set and hide or unhide it.
And I have no idea how to do this…
Best regards.
2 Replies
2 Replies
Create some spheres.
Select them and create a Named Selection Set with the name “Spheres”
Execute:
hide selectionSets[#Spheres] --hides the objects in the NSS
unhide selectionSets[#Spheres] --unhides them
select selectionSets[#Spheres] --selects them
In short, you can use a NSS as if it were a regular object set or array of nodes.
You can easily create selection sets via MAXScript by assigning one object or a collection of objects to a set:
selectionSets[#OneSphere]= $Sphere01 --creates a NSS "OneSphere" containing Sphere01
selectionSets[#WhateverIsSelected]= selection as array --creates a NSS from the current selection