Send information to Maya node instance in cpp

142 views Asked by At

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.

0

There are 0 answers