////// Ryans Hotkeys global proc setupRyanKeys() { //// Center Pivot string $hotKey = `nameCommand -annotation "Center Pivot" -command "CenterPivot"`; hotkey -alt -k "1" -name $hotKey; //// Rotate Snap $hotKey = `nameCommand -annotation "Snap Rotate On" -command "manipRotateContext -e -snap true Rotate;"`; hotkey -k "n" -name $hotKey; $hotKey = `nameCommand -annotation "Snap Rotate Off" -command "manipRotateContext -e -snap false Rotate;"`; hotkey -k "n" -releaseName $hotKey; //// Move Vert Snap Pivot $hotKey = `nameCommand -annotation "Move Snap Pivot" -command "EnterEditMode; snapMode -point true;"`; hotkey -k "b" -name $hotKey; $hotKey = `nameCommand -annotation "Move Snap Pivot Off" -command "EnterEditMode; snapMode -point false;"`; hotkey -k "b" -releaseName $hotKey; //// Super Poly Key $hotKey = `nameCommand -annotation "Super Poly Key State" -command "changeSelectMode -object; changeSelectMode -component; changeSelectMode -object;"`; hotkey -ctrlModifier -k "s" -name $hotKey; // $hotKey = `nameCommand -annotation "Super Poly Key Options" -command "superPolykey;"`; hotkey -k "S" -name $hotKey; // $hotKey = `nameCommand -annotation "Super Poly Key Off" -command "spke_onCommandDown;"`; hotkey -k "s" -name $hotKey; $hotKey = `nameCommand -annotation "Super Poly Key On" -command "spke_onCommandUp;"`; hotkey -k "s" -releaseName $hotKey; //// HyperShade Selected Material $hotKey = `nameCommand -annotation "HyperShade Selected" -command "HypershadeWindow; hyperShadePanelGraphCommand(\"hyperShadePanel1\", \"graphMaterials\");"`; hotkey -k "!" -name $hotKey; //// UV Window $hotKey = `nameCommand -annotation "UV Window" -command "TextureViewWindow;"`; hotkey -k "2" -name $hotKey; //// File Save And Backup $hotKey = `nameCommand -annotation "Save Scene With Backup" -command "SaveScene; fileBackupSystem;"`; hotkey -k "s" -ctl -name $hotKey; //// Copy Uv $hotKey = `nameCommand -annotation "Copy UV" -command "polyClipboard -cp -uv;"`; hotkey -k "," -name $hotKey; //// Paste Uv $hotKey = `nameCommand -annotation "Paste UV" -command "polyClipboard -ps -uv;"`; hotkey -k "." -name $hotKey; //// Move and Sew $hotKey = `nameCommand -annotation "Move And Sew" -command "performPolyMapSewMove 0;"`; hotkey -k "/" -name $hotKey; //// Select Shell $hotKey = `nameCommand -annotation "Select Shell" -command "SelectUVShell;"`; hotkey -k "'" -name $hotKey; //// UnGroup $hotKey = `nameCommand -annotation "Un Group" -command "Ungroup;"`; hotkey -k "G" -name $hotKey; //// Outliner $hotKey = `nameCommand -annotation "Outliner" -command "OutlinerWindow;;"`; hotkey -k "1" -name $hotKey; //// toggle vert colors $hotKey = `nameCommand -annotation "Toggle Vert Colors" -command "toggleVertColors;"`; hotkey -k "0" -name $hotKey; //// Go to object mode $hotKey = `nameCommand -annotation "Object Mode" -command "changeSelectMode -object;changeSelectMode -component;changeSelectMode -object;"`; hotkey -ctrlModifier -k "S" -name $hotKey; //// Hide Selected $hotKey = `nameCommand -annotation "Hide Selected" -command "HideSelectedObjects;"`; hotkey -altModifier -k "h" -name $hotKey; //// Show Selected $hotKey = `nameCommand -annotation "Show Selected" -command "ShowSelectedObjects;"`; hotkey -altModifier -k "s" -name $hotKey; //// Delete Selected History $hotKey = `nameCommand -annotation "Delete Selected History" -command "DeleteHistory;"`; hotkey -altModifier -k "End" -name $hotKey; //// Delete Edge $hotKey = `nameCommand -annotation "Delete Selected Edge" -command "DeleteEdge;"`; hotkey -k "End" -name $hotKey; //// make a texture node and browse with dave magic $hotKey = `nameCommand -annotation "Make Image Node" -command "textureBrowser_mgUtil()"`; hotkey -ctrlModifier -k "f" -name $hotKey; //// Open a selected texture node in an image editor $hotKey = `nameCommand -annotation "Open Image Node" -command "openInImageEditor_mgFn()"`; hotkey -k "?" -name $hotKey; //// Opens maya mel reference page $hotKey = `nameCommand -annotation "Mel Help" -command "showHelp DocsMelCommands;"`; hotkey -k "F2" -name $hotKey; //// Starts mel helper embedded $hotKey = `nameCommand -annotation "Embedded Mel Helper" -command "melHelperEmbedded_mgTool;"`; hotkey -k "|" -name $hotKey; //// Select UV Shell $hotKey = `nameCommand -annotation "Select Shell" -command "SelectUVShell;"`; hotkey -k "t" -name $hotKey; //// Toggle Backface Culling $hotKey = `nameCommand -annotation "Toggle Backface" -command "ToggleBackfaceCulling"`; hotkey -k "F4" -name $hotKey; //sets maya attribute editor to open in a seperate window optionVar -iv aeInMainWindow 0; //sets the hud to be on setPolyCountVisibility(1); //sets poly selection to be face centric polySelectConstraint -wholeSensitive on; //invinite Undo undoInfo -infinity on; //set recient history to max optionVar -iv "RecentFilesMaxSize" 20; optionVar -iv "RecentBackupsMaxSize" 20; optionVar -iv "RecentProjectsMaxSize" 20; //set clicksize bigger selectPref -clickBoxSize 20; //Set The HUD Colors displayColor -c -dormant headsUpDisplayLabels 14; }