Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / SDK / Need help on MItDependencyNodes
  RSS 2.0 ATOM  

Need help on MItDependencyNodes
Rate this thread
 
45408
 
Permlink of this thread  
avatar
  • Total Posts: 5
  • Joined: 29 March 2008 07:01 PM

Hi, I’m a new to maya sdk, I have a question puzzle me for a long while.

We all know we can list and iterate the specific type in Script:

cmds.ls(type "sine)

But I find the MItDependencyNodes cannot iterate on my custom node type such as “sine” or “jitter”;

for ( MItDependencyNodes iterMFn::kDependencyNode); !iter.isDone(); iter.next()){
 nodeFn
.setObject(iter.item());
 
nodePlug nodeFn.findPlug(MString("btime"));
}

You will notice the “MFn::kXXX” is some intrisic node type but no custom ones!!

Would you give some advices on how to iterate custom node type in sdk???

Thanks a log!!



Replies: 0