So I blew up my Maya and lost all of my precious precious hotkeys. Animating without them is infuriating. Maybe some of you could help- I had hotkeys to do the following:
1) Toggle Hide/Show all locators
2) Toggle Hide/Show Geo
3) Toggle Hide/Show Nurbs (for controllers)
All I have left is the old pref file from Maya 2013, and copying it into the 2015 pref file won't work. These are the remains of my hotkeys, if anybody can decipher the code or if simply have their own, I'd be greatly appreciate if you'd share/help. Thank you in advance.
The mess--
runTimeCommand
-annotation "Toggle on/off Nurbs curves"
-category "Display"
-commandLanguage "mel"
-command ("string $myPanel = getPanel -wf
;\n\nif(getPanel -to $myPanel
== \"modelPanel\") {\n\nif(modelEditor -q -nurbsCurves $myPanel
== 0) {\n\nmodelEditor -e -nurbsCurves 1 $myPanel;\n}\nelse {\n\nmodelEditor -e -nurbsCurves 0 $myPanel;\n}\n}")
NurbsCurvesToggle;
runTimeCommand
-annotation "Hide/Show Locator"
-category "Display"
-commandLanguage "mel"
-command ("string $myPanel = getPanel -wf
; \nif(getPanel -to $myPanel
== \"modelPanel\") {\n\nif(modelEditor -q -locators $myPanel
== 0) {\n\nmodelEditor -e -locators 1 $myPanel;\n}\nelse {\n\nmodelEditor -e -locators 0 $myPanel;\n}\n}")
HideLocators;
runTimeCommand
-annotation "Toggle PolySurfaces ON/OFF"
-category "Display"
-commandLanguage "mel"
-command ("global proc ag_hideunhide ()\n{\nstring $sel[] = ls -sl
;\n\n \n \n for ($each in $sel)\n { \n\t\t\n\t\tfloat $a = getAttr($each + \".visibility\"); \n \n\t\tif ($a < 1)\n\n {\n\n setAttr ($each + \".visibility\")1;\n\n }\n\n else if ($a > 0)\n\n {\n\n setAttr ($each + \".visibility\")0;\n\n }\n }\n}")
HideShowPolygons;
runTimeCommand
-annotation "Toggles Meshes"
-category "Display"
-commandLanguage "mel"
-command ("$panel = getPanel -wf
;\n$panelType = getPanel -typeOf $panel
;\nif($panelType == \"modelPanel\") {\nmodelEditor -e -ns (!modelEditor -q -ns $panel
) -pm (!modelEditor -q -pm $panel
) $panel;\n}")
ToggleMesh;