Notifications
Clear all

[Closed] Macroscript Keyboard shortcut context

Hi,

I have written a few macroscript to be used in the Unwrap_UVW modifier.

macroScript UV_AlignU
category:“Unwrap UVW”
internalcategory:“Unwrap UVW”
(…)

When I assign keyboard shortcuts, they are used ‘globally’

For example i would like to set it to the U key.
But U key is already set to the ‘user Viewport’ in the Main UI

So, How to set a macroscript to be enabled ONLY in the UnwrapUVW ?
ie: make it respond to the ‘Keyboard shortcut override Toggle’ ?
In the Customize User interface, is there a way to add commands in the ‘Group’ section as opposed to make a new category ?

Hope I’m clear enough.
Thanks in advance for any suggestions

5 Replies

When you’re assigning the hotkey in the customize window, the dropdownlist labeled “group” at the top left is what you need to change to Unwrap UVW. Then your hotkey will work only in that window.

Hi,
thx for the reply,

but this does not work, since if I choose a group, I have access ONLY
to the predefined commands available for that group.
ie: if I choose the group ‘Unwrap’, then the only available category is ‘All commands’,
and I don’t have acess to any other categories. (where of course my macroscripts are…)
I can add to menu or quads, but not to the specific keyboard shortcuts…
the only way i found so far is to use a ‘global’ KB shortcut (group MainUI)

Just a little Bump …

I couldn’t figure out how to do that either (for exactly the same script ). What I did instead was put it on the Unwrap quad menu. And then I figured out how to assign hotkeys to quad menu entries (like the C for clone and P for Properties). All you have to do is select the entry in the quad menu editor, right click it and chose to edit the name. If you do that on the Properties entry you’ll see theres a & in front of the P. Do that on your script and the letter will be underlined in the quad and when you right click you can press that hotkey and the command activates. The bottom right quad is the default one and this only works when the quad menu is highlighted with the mouse so it’s best to put the command in that quad or you’ll need to move the mouse over the correct quad all the time.

I find this really useful for all sorts of things as it’s way faster to right click and press U than to find the menu entry and it doesn’t activate unless the quad is open so it’s a whole new set of hotkeys for each quad menu.

Very nice info, robinb !
Nice workaround

will try this ASAP

i Wish i could save the right click, though …