0

I am currently developing a Maya plug-in in cpp. From the main class, I create a custom node instance (MPxLocatorNode) using the MDagModifier createNode command.

However, how can I pass information (a bunch of floats) to this custom node so that it takes them into account and acts upon it ?
I believe the plugs will help me, but I have no clue where to start: In the main class, how to link a plug to the instance and in the instance how to receive the plugs knowing that compute doesn't seem to be used as the instance does not have any input.

Thanks.

Laurent Crivello
  • 3,809
  • 6
  • 45
  • 89
  • Is this based on code that you shared in your previous question? – kartikg3 Jun 08 '15 at 22:23
  • If you're not using compute, you can just use the regular maya.cmds api to create and set custom attributes. – theodox Jun 08 '15 at 22:52
  • kartikg3: Yes, this is correct. theodox: Can I do this from one main class to a node instance created by this main class ? – Laurent Crivello Jun 09 '15 at 05:20
  • So you're not inheriting from `MPxLocatorNode`? I don't think you're using the Maya API as it was intended. What is it that you're trying to do? The question is very unclear. – Andreas Haferburg Jun 10 '15 at 19:28
  • [Here](http://stackoverflow.com/questions/30637438/how-to-get-node-class-instance-from-mobject-in-maya-api) is the question mentioned before. – Andreas Haferburg Jun 10 '15 at 19:29

0 Answers0