Mayaの便利hotkeys
//Maya Preference 2018 (Release 1)////
//// The runtime commands referenced by the hotkeys//runTimeCommand-annotation ""-category "Custom Scripts"-hotkeyCtx ""-commandLanguage "mel"-command ("timeSliderClearKey;")timeSliderClearKey;
runTimeCommand-annotation "キーカット"-category "Custom Scripts"-hotkeyCtx ""-commandLanguage "mel"-command ("timeSliderCutKey;")timeSliderCutKey;
runTimeCommand-annotation "キーペースト"-category "Custom Scripts"-hotkeyCtx ""-commandLanguage "mel"-command ("timeSliderPasteKey false;")timeSliderPasteKeyfalse;
runTimeCommand-annotation ""-category "Custom Scripts"-hotkeyCtx ""-commandLanguage "mel"-command ("timeSliderCopyKey;")timeSliderCopyKey;
//// The name commands referenced by the hotkeys//nameCommand-annotation "PlayblastWindowNameCommand"-sourceType "mel"-command ("PlayblastWindow")PlayblastWindowNameCommand;
nameCommand-annotation "GoToMinFrameNameCommand"-sourceType "mel"-command ("GoToMinFrame")GoToMinFrameNameCommand;
nameCommand-annotation "GoToMaxFrameNameCommand"-sourceType "mel"-command ("GoToMaxFrame")GoToMaxFrameNameCommand;
nameCommand-annotation "timeSliderCutKeyNameCommand"-sourceType "mel"-command ("timeSliderCutKey")timeSliderCutKeyNameCommand;
nameCommand-annotation "timeSliderPasteKeyfalseNameCommand"-sourceType "mel"-command ("timeSliderPasteKeyfalse")timeSliderPasteKeyfalseNameCommand;
nameCommand-annotation "timeSliderCopyKeyNameCommand"-sourceType "mel"-command ("timeSliderCopyKey")timeSliderCopyKeyNameCommand;
nameCommand-annotation "timeSliderClearKeyNameCommand"-sourceType "mel"-command ("timeSliderClearKey")timeSliderClearKeyNameCommand;
nameCommand-annotation "ChannelControlEditorNameCommand"-sourceType "mel"-command ("ChannelControlEditor")ChannelControlEditorNameCommand;
//// The user hotkeys////// The hotkey set//hotkeySet -source "Maya_Default" -current Maya_Default_Duplicate;//// The hotkey contexts and hotkeys//hotkey -keyShortcut "q" -sht -releaseName ("");hotkey -keyShortcut "t" -sht -name ("timeSliderPasteKeyfalseNameCommand");hotkey -keyShortcut "k" -sht -name ("");hotkey -keyShortcut "1" -alt -name ("");hotkey -keyShortcut "g" -ctl -name ("");hotkey -keyShortcut "v" -alt -sht -name ("");hotkey -keyShortcut "b" -sht -releaseName ("");hotkey -keyShortcut "Home" -alt -name ("GoToMinFrameNameCommand");hotkey -keyShortcut "b" -sht -name ("");hotkey -keyShortcut "9" -alt -name ("");hotkey -keyShortcut "F12" -name ("PlayblastWindowNameCommand");hotkey -keyShortcut "v" -sht -releaseName ("");hotkey -keyShortcut "Home" -name ("");hotkey -keyShortcut "v" -sht -name ("");hotkey -keyShortcut "0" -alt -name ("");hotkey -keyShortcut "F1" -name ("");hotkey -keyShortcut "k" -name ("");hotkey -keyShortcut "q" -ctl -name ("");hotkey -keyShortcut "k" -releaseName ("");hotkey -keyShortcut "t" -ctl -name ("");hotkey -keyShortcut "End" -alt -name ("GoToMaxFrameNameCommand");hotkey -keyShortcut "c" -sht -releaseName ("");hotkey -keyShortcut "c" -sht -name ("timeSliderCopyKeyNameCommand");hotkey -keyShortcut "l" -sht -name ("");hotkey -keyShortcut "2" -alt -name ("");hotkey -keyShortcut "F2" -name ("ChannelControlEditorNameCommand");hotkey -keyShortcut "k" -ctl -name ("");hotkey -keyShortcut "g" -sht -name ("timeSliderCutKeyNameCommand");hotkey -keyShortcut "q" -sht -name ("timeSliderClearKeyNameCommand");hotkeyCtx -type "Editor" -addClient "polyTexturePlacementPanel";hotkeyCtx -type "Editor" -addClient "posePanel";hotkeyCtx -type "Editor" -addClient "outlinerPanel";hotkeyCtx -type "Editor" -addClient "profilerPanel";hotkeyCtx -type "Editor" -addClient "hyperGraphPanel";hotkeyCtx -type "Editor" -addClient "timeEditorPanel";hotkeyCtx -type "Editor" -addClient "shapePanel";hotkeyCtx -type "Editor" -addClient "hyperShadePanel";hotkeyCtx -type "Editor" -addClient "graphEditor";hotkeyCtx -type "Editor" -addClient "nodeEditorPanel";hotkeyCtx -type "Tool" -addClient "texCutContext";hotkeyCtx -type "Tool" -addClient "xgmIGBrush";hotkeyCtx -type "Tool" -addClient "SymmetrizeUVBrush";hotkeyCtx -type "Tool" -addClient "sculptMeshCache";hotkeyCtx -type "Tool" -addClient "Unfold3DBrush";hotkeyCtx -type "Tool" -addClient "polyCutUV";hotkeyCtx -type "Tool" -addClient "texSculptCacheContext";
上のコードをテキストエディタに張り付け、○○.mhkというデータに別名保存する。
あとはmayaのホットキーエディタから読み込めば、便利ショートカットが使えます。
なお、アニメーションを作成する際によく使うショートカットを入れてます。一部ショートカットが上書きされてるかも。
ショートカット一覧
shift +Q : キーを削除
shift +X : キーをカット
shift +V : キーをペースト
shift +C : キーをコピー
手順はこちら。