Home Technical Talk

[TIP] Maya 2016 Custom Marking Menus in any window

polycounter lvl 5
Offline / Send Message
ValN84 polycounter lvl 5
As you might know there's a limitation in Maya that would not allow custom marking menus to be called by hotkey in undocked viewports such as the UV Editor.
They fixed this for Maya 2016 but you need to reset your keyboard shortcuts for your marking menus if you copied them from previous versions. This is because the command that calls the marking menu has been changed to make it usable in the view under the mouse, the value of which is returned by the "findPanelPopupParent" procedure.
Before we start, any marking menus that have been set up to be available in the Hotkey Editor in Maya 2016 should use the new command and work in all view panes.
The easy way to tell if your marking menu hotkey commands are old imported ones is to see where they are located in the Hotkey Editor.
If they are under Custom Scripts->User Marking Menus then they most likely is the old command, easily identifiable by the "-parent viewPane" flag.
If they are under Other Items->User Marking Menus then they are new correct ones, check the -parent flag, if it's `findPanelPopupParent` they they should be good!

Here's how to fix this:

I. The consistent way, aka the "I don't want to have to do this again for Maya's next release!" version is to delete the old hotkey commands and have Maya set up new ones as follows:

1. Go to the Edit Hotkeys For: Custom Scripts > User Marking Menus section.
2. Select one command and from he right in the Runtime Command Editor tab press "delete". Do this for all of your custom marking menus, both press and release hotkey commands need to be deleted!
3. Close the Hotkey Editor.
4. Go to the Marking Menu Editor and set each of your custom marking menus to be available in the Hotkey Editor.
5. Go back to the Hotkey Editor. There are new entries for your custom marking menus here: Edit Hotkeys For: Other Items > User Marking Menus. Set your keyboard shortcuts as desired.

Hopefully this means that if they change the commands themselves for future Maya releases, the shortcuts will be updated automatically.

II. The hax0r way, aka the "I'm copy pasting like a bo$$!" way.

1. Go to the Edit Hotkeys For: Custom Scripts > User Marking Menus section.
2. For each press hotkey command edit the contents in the Runtime Command Editor to have the "-parent `findPanelPopupParent`" flag.
3. For Maya's next relase if they change the marking menu command again with some new gimmicks, do something similar again.
Sign In or Register to comment.