4

I'd like to assign hotkeys to certain actions, like for example "Extrude Individual Faces"? Is there a list of all possible commands somewhere?

For example, in this picture "view3d.edit_mesh_extrude_move_normal" is the command or function. So where can I find a list of all possible commands so I can assign hotkeys to them?

enter image description here

Thom Blair III
  • 16,535
  • 20
  • 75
  • 112
  • Yes, that list does help but turning on the python tooltips also worked, so should the question be left so Robert can get the rep credit? – Thom Blair III Mar 19 '14 at 17:40
  • @ThomBlairIII The question (and it's answers) will still be here if it's closed as a duplicate. – gandalf3 Mar 19 '14 at 18:26

3 Answers3

7

You can turn on Python Tooltips in User Preferences > Interface > Display. Hover over the tool or button you want to assign a shortcut for and the function (operator) name appears.

Tooltip - Operator

Then press CtrlC to copy that operator call and paste it into blenders python console CtrlV. Remove the brackets, type .idname_py() and press Enter to get the python identifier of the operator, which can be used to create or edit shortcuts in User Preferences > Input.

Console - Operator Id

Example: bpy.ops.object.origin_set(type='ORIGIN_CURSOR')
Python identifier: object.origin_set

brockmann
  • 12,613
  • 4
  • 50
  • 93
  • I did not know tooltips could be turned off. I use them all the time to help me learn the python property names for fields. – Mutant Bob Mar 21 '14 at 17:26
4

Many buttons will have an option to create (or if a shortcut already exists, remove or change) a shortcut when you right click on the relevant button:

enter image description here

gandalf3
  • 157,169
  • 58
  • 601
  • 1,133
2

You can use the output in the info window to get the python equivalent command of an action. The info panel will echo all commands.

enter image description here

Vader
  • 14,680
  • 16
  • 74
  • 110