I noticed that very often when I search for a command or something in the Blender Python API I do not find what I am looking for. I am not sure if I simply make a mistake or if what I am looking for is not available.

For example:

CTRL + A calls the Apply Transformation menu enter image description here

I am after the command "bpy.ops.object.transform_apply()" but I would like to make a button that opens that menu.

And what calls that menu is not what I am able to find.

Can anyone give me a tip where such information is in a document?


1 Answer 1


For this one ( or other shortcuts ) :

  • go to User File -> preferences -> Input
  • search for a key combination "Ctrl A"
  • expand the shortcut for "call menu" under "Object mode"
  • you can see the command is "wm.call_menu" and the name attribute is "VIEW3D_MT_object_apply"

since the shortcut point to an operator which should be under "bpy.ops", we use this line to call the same menu :

  • $\begingroup$ Dear lord, the preference areas ... I should have thought about it. $\endgroup$ Jan 8, 2016 at 17:50

You must log in to answer this question.

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