Message 1 of 1
Calling MFnDependencyNode::userNode() from Python?

Not applicable
10-11-2012
10:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an MObject for my custom node and I need to get back from it an instance of the custom node (a class derived from MPXnode).
In the C++ API, I would call MFnDependencyNode::userNode() and cast the returned pointer to my custom node class type. I haven't been able to figure out how do the same thing from the Python API bindings, though. I get back an instance of type MPxNode, but I haven't been able to figure out how to convert that to my derived class type?
Thanks!
In the C++ API, I would call MFnDependencyNode::userNode() and cast the returned pointer to my custom node class type. I haven't been able to figure out how do the same thing from the Python API bindings, though. I get back an instance of type MPxNode, but I haven't been able to figure out how to convert that to my derived class type?
Thanks!