Access the Hotkey Editor under Windows > Settings/Preferences > Hotkey Editor. eval( '$nul = $gShelfTopLevel')ĬurrentShelf = cmds. Click on the Create Hotkey Shortcuts button to make a UV Kit launch function available within Mayas hotkey editor.
Selects the last used tool that is not one of Select, Move, Rotate, or Scale. Select Tool, or with left mouse button for Selection Mask marking menu. Select Tool, or with left mouse button for Polygon marking menu.
Maya assign hotkey to shelf button free#
Feel free to use the icon 'GNProjectComponentsToLiveSurface.png' provided with this script for your shelf button. For example, if you would like to add the Slide Edge command to your shelf, button, hold down Shift and CTRL while choosing Mesh Tools>Slide Edge from the main menu. Select Tool, or with left mouse button for Component marking menu. You can add a button to your shelf with the commands above or create a runtime command in the Hotkey Editor and assign a hotkey to it. join( appPath, version, "prefs/icons", imageName) With the target shelf tab active, simply hold down the Shift and CTRL buttons while left-mouse clicking on the menu command that you would like to add to the shelf. I have a button on my Logitech wireless keyboard with an email icon that in that past has always opened up Outlook 2007.
Maya assign hotkey to shelf button Pc#
Tooltip = 'Rename multiple objects' # Tooltip to use for the shelf button hotkey button on keyboard to open email I just upgraded from Office 2007 to Office 365 on my Dell desktop PC running windows 10. Name = 'Batch Rename' # Name to use for the shelf button In the Edit Marking Menu dialog box, right-click on the left-center gray box and choose Edit Menu Item from the shortcut menu. Finally, MMB-drag the new icon to your marking menu to add it. To test you could: assign it to a hotkey make it a shelf button, execute once and then hit 'g' to execute again so it is executed while you hover over attributes in the Node Editor ''' from maya import mel from maya import cmds nodeeditor mel.eval('getCurrentNodeEditor') itemundercursor cmds. Hi, If its a few items you want to assign hotkeys to, you can create simple template script in Python, drag this onto the shelf, and assign a hotkey to each of these items which could be limited to a pane like the network editor if desired, or invoked globally. ImageName = 'batchrename.png' # The icon will be saved using this name (include ext) in the icons folder of the current maya version (usually : documents/version/prefs/icons) Ctrl+Alt+Shift+click on a command, and it's added to the Shelf, complete with its icon.