pass MpxNode MObject to other classes

pass MpxNode MObject to other classes

stuzzz
Collaborator Collaborator
473 Views
1 Reply
Message 1 of 2

pass MpxNode MObject to other classes

stuzzz
Collaborator
Collaborator

I'm writing a plug-in.

It has a MPxNode, a MPxContext and a MPxToolCommand.

How can I pass the Mobject of the MPxNode during its creation to the MPxContext or MPxToolCommand ?

 

I know that MPxNode::thisMObject() exists but I'm not sure how to deal with .

0 Likes
Accepted solutions (1)
474 Views
1 Reply
Reply (1)
Message 2 of 2

stuzzz
Collaborator
Collaborator
Accepted solution

I actually found the answer to my problem.

The MPxContextCommand with a pointer to the MPxContext, did the trick.

 

0 Likes