Notifications
Clear all

[Closed] How to querry a selectionset names?

What is the proper way to get a list of selectionSets names in a scene?

4 Replies
2 Replies
(@bobo)
Joined: 11 months ago

Posts: 0

 theSSnames = for i = 1 to getNumNamedSelSets() collect getNamedSelSetName i

(@blue)
Joined: 11 months ago

Posts: 0

Thanks Bobo, that does just what I was looking for. Not sure how I missed getNamedSelSetName, but it’s just what I needed.

 PEN

selectionSets returns turns an array of all the named selection sets in a scene. Type the same thing into the help and it will give you all the other commands that go with it.

1 Reply
(@blue)
Joined: 11 months ago

Posts: 0

Thanks PEN, the odd thing is that if I try to print an index of the array it lists all the objects in that seletion set, not the selection set name.

x = selectionSets;print x[1]