MItDependencyNodes is gone in API 2.0?

63 views
Skip to first unread message

Kthulhu Fhtagn

unread,
May 19, 2015, 6:45:51 PM5/19/15
to python_in...@googlegroups.com
Hello, i'm trying to port some old python code to api 2.0 and i'm unable to find any mentioning of MItDependencyNodes iterator in documentation.
Is it was removed forever or just silently replaced with some other class?

What's the best way to traverse the scene nodes of given type with api 2.0?

Thanks.

Paul Molodowitch

unread,
May 19, 2015, 7:19:16 PM5/19/15
to python_inside_maya
Hey Kthulhu -

The python api 2.0 was a very promising start that was sadly left only half-finished.  So a lot of functionality (including many of the iterators) is simply missing.  It's a bummer, because api 2.0 was both way simpler to use, AND way faster than the 1.0 python api.

Because it's only half-finished, though, the only places I use it are very self-contained tasks, that I know can be accomplished with it, and could use a speed boost (compared to 1.0 python).

- Paul

PS - Please remember I tried to help, when your dark shadow covers the world, and you're trying to decide whose soul to devour. Thanks...

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/4f662766-9795-460d-b83a-8ee3956ebf46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kthulhu Fhtagn

unread,
May 19, 2015, 7:52:07 PM5/19/15
to python_in...@googlegroups.com
Ouch.
Got it, really pity to hear that so good thing as scripted access to Maya internals left unfinished, but thanks for information.

The problem with api 1.0 is that i cannot find any documentation on it, seems it was intentionally replaced with 2.0 wherever it was possible, and some methods changed a lot, like MFnMesh.allIntersections parameters list.
Reply all
Reply to author
Forward
0 new messages