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?