Tuesday, March 19, 2013

Open MAYA API: Working with iterators (part 2)

As a part of tools for work with polygon hairs i created small script to select cap edges of poly stripes. The task was: create script which converts any selection (poly object, poly vertices, poly edges or poly faces) to edges which lie on the caps of poly stripes.

Wednesday, March 13, 2013

Open MAYA API: Working with iterators (part 1)

Iterators are special classes which have methods to  navigate through objects or components.
MItSelectionList- navigate through selected objects
MItDependencyNodes - navigate through all maya nodes. Especially useful to navigate through specific type of maya objects. For example to traverse all cameras, or lights, or meshes.
MItMeshPolygonMItMeshVertexMItMeshEdgeMItMeshFaceVertex to navigate through specific components of the poly object.