c++ Custom Node

27 views
Skip to first unread message

Rémi Deletrain

unread,
Sep 18, 2015, 7:07:18 AM9/18/15
to Python Programming for Autodesk Maya
Hi everybody,

I try to was creating a custom node in c ++. It is functional yet.
My problem is to try to optimize this node.

I have an input inSurface attribute.
I retrieves the connection with MHandleData and I converted in MObject

// ========================================

MDataHandle inSurfaceDataHandle = data.inputValue (aInSpace);
MObject inSurface inSurfaceDataHandle.asNurbsSurface = ();
MFnNurbsSurface mnsNurbsSurface (inSurface);

// ========================================

But I find that this solution is Extremely heavy in terms of calculation for Maya ... Is that there would be another solution?

I try to put a variable pointer in the class. and recover the connection once. It works a creation of the node but not after ...

any one have a solution?
Reply all
Reply to author
Forward
0 new messages