so i understand if your developing a plugin for maya2018 using mpxDrawOverride class. That it is not good to run calculations in the addIUDrawables fn of the class. instead you should use preparefordraw() call and MUserData class.
question is. If im already calculating stuff in the compute of the mpxlocatorNode how can i pass this to the MuserData so that prepare for draw can use it?
can i communicate with MUserData from the compute of the MPxLocatorNode?
thanks!
Solved! Go to Solution.
Solved by cheng_xi_li. Go to Solution.
Hi,
Since you are using MPxDrawOverride, the override is initialized with the object of your MPxLocatorNode. You could get a pointer to your node with MFnDependencyNode::userNode. You could access to the data in your node directly through this pointer and prepare the userData in the prepareDraw.
Yours,
Li
Can't find what you're looking for? Ask the community or share your knowledge.