Invoke Mel command "move" on custom manipulator like native one
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am working on a custom "kFreePointTriadManip" manipulator and trying to make it behave as close to the native maya one.
On the sdk I noticed the "moveManip" example invokes the setAttr command whenever it's moved instead of the
"move" MEL command like the original.
This makes it harder to do other actions such as moving multiple objects and apply a relative offset to all of them. (Like the original).
I think the correct way of implementing it would be through a "MPxToolCommand" but since "move" is already implemented I wonder if I can just do MGlobal::executeCommand and that will take care of the relative offset and the undo queue, among other things that make it closer to the original implementation.
I feel a bit lost and unsure about how to proceed so any insight would be greatly appreciated,
thank you!