Mar 19, 2012

Discovering Custom Hotkeys

Well there are a few things even an experienced blender user may have not run across before... one such thing is: adding hotkeys manually. You know, you can right click on operations in menus to add or change hotkeys, but what about those times when you want to add a hotkey, but your can't add it with the right click menu.

For this example I will use one of my favorite useful add-on: Chromoly's Vertex Slide. It doesn't come with a hotkey assigned. You can find more information about this specific add-on if you wish in this thread.

The first step is to use the spacebar search, a menu or  a button to locate and activate the operation you are adding the hotkey for. When you use the operation and confirm the action. It will print out the operations you just completed. To be able to see the printed operator command you need to drag the top bar down. 

Note: There are a few other ways to view operator commands such as hovering over buttons and menu items long enough will give you a popup that shows you the python command.

Next go to your preferences with Ctrl-Alt-U, go to the
Input tab and go to the
3D View>Mesh key map, scroll down to the bottom of the mesh key maps to where you see the "Add New" button and press it. Then expand the new key map with the little triangle.

This is your blank key map, I am using Alt-V for my hotkey so I added that, the next step is the most important to note, you need to look at the last operation that you performed in blender, just look in the window that you dragged down earlier.

For this example the "mesh.vertex_slide" is the part that is important, the operation is doesn't need the bpy.ops. or the information in the brackets to work, so when you enter the operation into the blank text box it will recognize the operator and give you the options for the operation inside key map.
Note: Make sure the hotkey you intend to use is not being used or you may run into issues with crashing or hotkeys not working. In edit mode Alt-V is a free hotkey.
Now that you have a working hotkey, don't forget to drag the top window back up and save your default scene.


Anonymous said...

Great tutorial, Cow!

iRowebot said...

Oh my god... All this time ive been doing it the hard way. The way you say to add hot keys is the way that i've done it from the start. I had no idea that you could simply right click and BAM, new hot key. Its like learning that matter and energy are the same thing!

Tomas said...

How i could miss this? Thank you for sharing, my life would be now easier :D

Dimitri said...

Dear Webmaster,

Hope you are well.

We are Blender Guru’s Website Maintenance Team.

In our regular review of backlinks to our website, 
we have discovered links pointing from your website to our website.

 have listed all relevant link information below for your quick 

We would like to ask you to remove all Blender Guru links from from the above list. Please know that your site's integrity and 
business practices are not in question here, and we are not contacting 
you alone for our backlink clean-up process.

Please get in touch as soon as possible to confirm that you have received this email and have removed the link in question.

Thank you for understanding.

Kind regards,

Dimitri Draghia
Jerrard Wayne Creatives Ltd
+44 (0)20 8263 6020

Popular Posts