maya doesn't load my hotkey set at startup

maya doesn't load my hotkey set at startup

Anonymous
Not applicable
14,205 Views
12 Replies
Message 1 of 13

maya doesn't load my hotkey set at startup

Anonymous
Not applicable

everytime I start Maya it revert back to default hotkey set, I have to open hotkey settings and select my own set again, any help?

0 Likes
Accepted solutions (2)
14,206 Views
12 Replies
Replies (12)
Message 2 of 13

macleanchr
Participant
Participant

Yeah, they broke this.  Until they hotfix it in a few months, you can force this to load your hotkeys by adding a userSetup.mel text file to your ".../maya/2017/prefs/scripts/" folder (if you don't have one already. If you do, just add this to the bottom of the file).  Open that file in a text editor and add the following:

 

hotkeySet -e -current *whatever_you_named_your_hotkey_user_file*;

 

For example, mine is:

 

hotkeySet -e -current chris;

 

 

Oh Maya.

Message 3 of 13

Anonymous
Not applicable

Thanks that worked for me

0 Likes
Message 4 of 13

Anonymous
Not applicable

OBSERVATION:

 

In my case the name of the hotkey set file was "userHotkeys_Maya_Default_Duplicate" but I had to use the following code:

 

"hotkeySet -e -current Maya_Default_Duplicate;"

0 Likes
Message 5 of 13

mareknaprstek
Observer
Observer
Thanks! It was driving me crazy. Just found the userSetup.mel in ".../maya/2017/scripts/" instead of ".../maya/2017/prefs/scripts/"

Cheers
0 Likes
Message 6 of 13

Anonymous
Not applicable
Accepted solution

just leave it herehotkeys.jpg

Message 7 of 13

mehdiablo
Community Visitor
Community Visitor

Making hotkeys more complicated to set... not a smart move autodesk

0 Likes
Message 8 of 13

_sebastian_f
Advisor
Advisor
Accepted solution

@mehdiablo update your maya the bug is fixed for quite some time now. what @Anonymous  posted is actually a very nice new feature and was a workaround.

0 Likes
Message 9 of 13

Anonymous
Not applicable

Here it is in python in case anyone is using a userSetup.py file.

 

from maya import cmds
cmds.hotkeySet("HOTKEY_SET_NAME", e=1, cu=1)

0 Likes
Message 10 of 13

Anonymous
Not applicable

Yes! Thx

0 Likes
Message 11 of 13

Anonymous
Not applicable

I am experiencing this in the latest version of Maya LT.

0 Likes
Message 12 of 13

conkerz
Enthusiast
Enthusiast

The above script solution works.

Another solution is to link a hotkey set to a workspace as shown here:

https://youtu.be/k2oKSU2ww8s

Message 13 of 13

Anonymous
Not applicable

Late to this thread but I was searching for solutions to this.  The way I've done this is to copy these files from a backed up copy of your prefs.  Worked for me today.

 

/maya/2018/prefs/hotkeys/

     userHotkeys_*.mel

/maya/2018/prefs/

     userNamedCommands.mel

     userRunTimeCommands.mel

 

0 Likes