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?


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$ – Claas Kuhnen Jan 8 '16 at 17:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.