Notifications
Clear all
[Closed] selectedObject.GetSelection #Vertex
Oct 30, 2014 10:04 pm
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
Oct 30, 2014 10:04 pm
if you have a poly without any modifier applied use
node.selectedverts as bitarray
Oct 30, 2014 10:04 pm
And if not, commit the previous operation first:
selectedObject.commit()