skygunner
11-15-2011, 02:47 AM
Maya often likes to group vertices using shorthand like vtx[7:12] instead of vtx[7], vtx[8]...vtx[12].
This is super annoying when you need to iterate through a group of vertices to do some task in a for loop because some commands only take one argument not multiple ones.
An example would be if I had a group of vertices selected.
for i in vertexGroup:
worldPos = cmds.pointPosition(i) <- only takes one point, not a group of points that Maya organizes.
How do I split up the vertices?
Thank you,
This is super annoying when you need to iterate through a group of vertices to do some task in a for loop because some commands only take one argument not multiple ones.
An example would be if I had a group of vertices selected.
for i in vertexGroup:
worldPos = cmds.pointPosition(i) <- only takes one point, not a group of points that Maya organizes.
How do I split up the vertices?
Thank you,
