4
$\begingroup$

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

$\endgroup$
2
  • $\begingroup$ 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? $\endgroup$ Commented Mar 19, 2014 at 17:40
  • $\begingroup$ @ThomBlairIII The question (and it's answers) will still be here if it's closed as a duplicate. $\endgroup$
    – gandalf3
    Commented Mar 19, 2014 at 18:26

3 Answers 3

7
$\begingroup$

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

$\endgroup$
1
  • $\begingroup$ 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. $\endgroup$
    – Mutant Bob
    Commented Mar 21, 2014 at 17:26
4
$\begingroup$

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

$\endgroup$
2
$\begingroup$

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

$\endgroup$
2
  • $\begingroup$ I can't remember which, but I think there are some commands which this doesn't show. $\endgroup$ Commented Mar 19, 2014 at 18:41
  • $\begingroup$ @RayMairlot possible, I don't know. $\endgroup$
    – Vader
    Commented Mar 19, 2014 at 18:52

Not the answer you're looking for? Browse other questions tagged .