|
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 iter( MFn::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!!
|
|
|