FORUMS: list search recent posts

MitGeometry iterator

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
karen ler
MitGeometry iterator
on Jun 30, 2010 at 1:48:45 pm

HI!

I am writing a defoemer in maya API.
I have an array of objects and I want to have an iterator for each one of the objects.

I used the MArrayDataHandle, then I jumped to the element and created a MDataHandle of that element. now I wont to create an iterator for this element and the repeat again for all the elements bet Its not working :(

this is the code:
MArrayDataHandle handle = block.inputArrayValue( geomObject, &returnStatus );
if ( MS::kSuccess != returnStatus )
return returnStatus;

handle.jumpToElement( multiIndex );
MDataHandle objHandle = handle.inputValue();
MItGeometry geomIter( objHandle );

Is there an othere way to create iterators for each object in an array of object?

thanks :-)


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]