Notifications
Clear all

[Closed] selectedObject.GetSelection #Vertex

Writing a script right now where I set a vertex selection on a Editable poly, then delete some edges.

After the delete I reaquire the vertex level selection with

selectedObject.GetSelection #Vertex

but the selection contains references to the old vertices indexes. Some of them have been deleted and some of them had their indexes changed. Looking in max the right vertices are selected. Is there a way to get the force an update to the selection byte array?

2 Replies

if you have a poly without any modifier applied use

node.selectedverts as bitarray  

And if not, commit the previous operation first:

selectedObject.commit()