Notifications
Clear all

[Closed] Get and set sub-object selections in a poly_select modifier?

I might be totally missing this in the help file, but I can’t seem to find how to use maxscript to get and set sub-object selections with a poly_select modifier. Is it possible? I know how to do it with an editable poly object and an edit_poly modifier. The script I’m writing needs to be able to cover all bases if possible. Cheers.

Cg.

3 Replies
 Nam

Hi there,

How about using something like “modPanel.setCurrentObject $.modifiers[#Poly_Select]” and then the system global “subobjectlevel” to get and set the level?

Cheers,
–Nam

I was looking to do more than just turn on sub-object. I wanted to be able to get and set the bitarray of the selected subojects. Like:

selVertsCgRay = polyop.getVertSelection

with editable poly object

and


  selVertsCgRay = currentStackLevel.getselection #vertex

with edit poly modifier

Cheers,

Cg.

didn’t spot anything myself beyond temporarily adding another modifier just above the one of interest, a modifier of which you -can- get the selection.