Maybe this will work:
// loop for iterating on locator type.
for ( MItDependencyNodes iter( myCustomNode::id ); !iter.isDone(); iter.next
()){
MObject = iter.item();
//do something
}
On Wed, Jul 14, 2010 at 10:58 PM, Yeah.Y <[email protected]> wrote:
> Hi, I'm a newbie to Maya API, I have a question need your help,
> I cannot iterate on my own defined new type, for instance "jitter"
>
> The normal iterator only support build-in types such as MFn::kXXX
> type, but how about the "jitter".
>
> Is there a mechanism which can add a new type in API ??
>
> the code example:
>
> // for loop for iterate on locator type.
> for ( MItDependencyNodes iter( MFn::kLocator); !iter.isDone();
> iter.next()){
> //do somthing iter.item()
> }
> //the end
>
> I mean that how can I change the MFn::kLocator to another type which
> my own defined??
>
> Thanks a lot & Best.
>
> --
> http://groups.google.com/group/python_inside_maya
--
SemiReal Digital (www.semireal-digital.com)
--
http://groups.google.com/group/python_inside_maya