Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Autodesk Maya 2011 / Maya Hotkeys Reset after quit
  RSS 2.0 ATOM  

Maya Hotkeys Reset after quit
Rate this thread
 
46831
 
Permlink of this thread   Subscribe to this thread
avatar
  • Sumrall
  • Posted: 01 September 2010 11:15 AM
  • Total Posts: 1
  • Joined: 01 September 2010 06:00 PM

Hi, I recently upgraded to Maya 2011 and my workflow has been crippled because I can’t keep my hotkeys the way I want them. If I set the hotkeys in the editor and save them, they work fine during the current session. However, if I quit and relaunch Maya, the default hotkeys are added back on top of the ones I saved. This pretty much negates the purpose of setting hotkeys and it happens every time.

I’ve read in other forums of similar stories popping up here and there, but I’m hoping this will be noticed by Autodesk. If this isn’t the place to point out this bug, perhaps someone can tell me where to do so.

Thanks.



Replies: 0
avatar
  • THNKR
  • Posted: 01 September 2010 12:45 PM

To submit bugs to Autodesk, In Maya, click on Help->Report a Problem…

I maintain an open Maya bug tracker at http://bugs.thnkr.com Your issue is http://bugs.thnkr.com/view.php?id=216



Replies: 1
/userdata/avatar/7p2qf3yyg_johnC.jpg

Thanks THNKR, looks good!

Author: John Creson

Replied: 01 September 2010 03:08 PM  
avatar

ok, it’s time for a workaround

try this:

The userHotkeys.mel file is missing the lines like:

hotkey -keyShortcut "X" -releaseName ("");

and the file gets written over, so…

Create your Keys, saved your prefs, edit the file to add in the missing -releaseName lines, and save your new mel script in your local maya/scripts as

userHotkeys.mel

and probably want to put in a line in a

userSetup.mel

file in maya/scripts that says

source userHotkeysSaved.mel;

or maybe even need a line like

evalDeferred "source userHotkeysSaved.mel;"


Replies: 0
avatar

I got stuck following you at step one. I want to just disable the hotbox (for now), without editing the installed files. I never use it and sometimes press space instead of the ALT key. I used the hotkey editor in preferences to remove the press and release codes for the hotbox, and clicked on save. That works for the immediate session, but there is no userHotKeys.mel file generated. Here is what the script editor said:

// Saving runtime commands to : C:/Users/WesHowe/Documents/maya/2011-x64/prefs/userRunTimeCommands.mel
// Saving named commands to : C:/Users/WesHowe/Documents/maya/2011-x64/prefs/userNamedCommands.mel
// Preferences saved. See Script Editor for details.

Neither of those two files has anything in them, however. Looking at the timestamps, none of the other files (userPrefs.mel, windowPrefs.mel, etc.) in the folder were changed.



Replies: 0
avatar

oops, I was writing over a default hotkey with my own script.  Yes the bug is in the writing out of default hotkey removals.
So, if you don’t do anything but remove a default hotkey, nothing will get written out.

But, neverFear, you can just use the same language in any mel script, (you could put it in a script you named userHotkeys.mel in your prefs,(and maybe write protect it?) or you could put it directly into your userSetup.mel - or userSetup.py if you feel like putting it there.

Its the writing out that is messed up, not the reading.

What might that command be?

hotkey -keyShortcut "Space" -name ("") -releaseName ("");

the keyShortcut flag value is the actual key - here its name - in quotes

the -name flag is the command that will happen when you press it.
the -releaseName flag is the command that will happen when you release it.

It’s the same hotkey command that sets the hotkey, only we are setting it to an empty string, thus nothing will be executed.

Also, possibly a good thing to remember, the error is only in writing out the removal of default hotkeys.
So, this bit is the bit you need to add to your scripts at the top, so you don’t go erasing the hotkeys you are trying to set, if you’re overwriting with your own.

Also, you possibly could copy over the 2010 userHotkeys.mel that works for you and write protect it…

Something else you might find useful
If you want the hotbox, but don’t want the pane-popping to occur, possibly because you keep hitting it by accident, you can execute the following command in mel

Warning: this will turn off your pane popping, you will need to restart to get it back again.

hotBox -noClickCommand "";


Replies: 2
/userdata/avatar/avatar_281222.jpg

Thank you for the explanation, I thought the issue was just that the release part wasn’t written, which could be fixed by a manual edit. This was not a major issue for me, by any means, however it is something I have been wanting to do, and I got confused by the file not being generated.

I also didn’t realize that I could make that change in userStartup.mel, I did and it works. Doing that is a better solution for me because it is something I can more easily remember to move to 2012 or back to 2011 the next time I have to reset preferences or something.

I have noticed you have been busy lately solving lots of confusing problems with (in my opinion) very small root causes but aggravating side-effects. Not just this issue, but the single-quote in folder name breaking the hypershade, too. I hope some of this migrates to a future hotfix, but the work-arounds are simple and effective.

Author: Wesley Howe

Replied: 03 September 2010 06:26 AM  
/userdata/avatar/7p2qf3yyg_johnC.jpg

Noted: 
the work that everyone on this forum is doing, including the reporting of bugs, helping each other out, working together to pin-point the issues and develop workarounds where possible, and reporting back the usefulness of any one workaround idea, makes Maya better.

That said:
The issue with fixing small root causes, is that they may cause other greater, unexpected issues that may or may not be worked around.  If a change doesn’t go in too soon, that may be a good thing too.

Author: John Creson

Replied: 03 September 2010 11:44 AM  




   
  Settings Choose Theme color: