How to efficiently get indices of modified vertices

How to efficiently get indices of modified vertices

mcw0
Advisor Advisor
798 Views
3 Replies
Message 1 of 4

How to efficiently get indices of modified vertices

mcw0
Advisor
Advisor

I can query the number of modified vertices with "getAttr -s meshShape.pnts".  But is there a way to get the indices?

0 Likes
Accepted solutions (2)
799 Views
3 Replies
Replies (3)
Message 2 of 4

olarn
Advocate
Advocate
Accepted solution

Like this?

print pm.PyNode("meshShape").pnts.getArrayIndices()

It's in pymel but you get the idea. 

Message 3 of 4

mcw0
Advisor
Advisor

Thank you.  I'll see if that's possible in Mel.  Or I really should jump onto the Py... wagon.

Message 4 of 4

mcw0
Advisor
Advisor
Accepted solution

"getAttr -multiIndices"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

If I only learn to read ALL of the documentation!