[Maya API Question] How to remove a manipToPlugCallback?

Not applicable
08-27-2020
03:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm learning Maya API. I'm work with the example "rotateManip".
I knew the code which is used to connect the rotate manipulator and add a callback to the rotate plug.
rotatePlugIndex = addManipToPlugConversionCallback( rotatePlug,
(manipToPlugConversionCallback)
&rotateManipContainer::rotationChangedCallback);
Because I want to break the connection between the rotate manipulator and the rotate plug, I tried these:
MModelMessage::removeCallback(rotatePlugIndex);
But, no luck. It didn't work.
So, my questions are:
(1)How to break or stop connection between the rotate manipulator and the rotate plug?
(2)How to remove manipToPlug Callback?
Thanks for helping.
Tony