The main difference between the previous example of walking
the selection list is that this time we query both a path to
the object, and a list of the components selected.
Using the most generalised of the geometry iterators, MItGeometry,
we can walk through the points on any surface, curve, mesh or
lattice. If the components say contained a list of polygonal
edges, the MItGeometry iterator would walk
through the points that made up those edges.
So, ok it's nice to be able to walk through a set of points
on an object, but what about things such as edges, faces, isoparms
etc?
Well, the answer is a mixed err.... Some iterators exist within
Maya to walk over specific component types, these are :
I will now hold my hand up and admit
that I don't know how to parse any other component types specifically,
without using MItGeometry. This is currently very annoying, items
such as isoparms would be really nice. Oh well, if anyone does
discover how to do this - then please let me know!
So then, onto my best attempt at
being able to parse any selected items...