Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Calling MFnDependencyNode::userNode() from Python?

Calling MFnDependencyNode::userNode() from Python?

Anonymous
Not applicable
342 Views
0 Replies
Message 1 of 1

Calling MFnDependencyNode::userNode() from Python?

Anonymous
Not applicable
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!
0 Likes
343 Views
0 Replies
Replies (0)