Post #1475: ![](https://blenderartists.org/user_avatar/blenderartists.org/thomas_p/48/637401

šŸ“‹ Metadata

  • Author: roaoao
  • Date: 2018-07-18 09:45:30
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_01474

šŸ·ļø Tags

pie-menu hotkeys intermediate solved

  • Pie Menu Editor
  • Command tab
  • Python Scripting

šŸ’¬ Content

thomas_p:

I’d like to call an existing pie menu that has been defined outside Pie Menu Editor (comes with another addon) by clicking on a button.

According to the input tab the code to make it show is:
wm.call_menu_pie with the name of the pie menu given as object.hair_tool_menu

Is it possible to bind this command to a button in Pie Menu Editor so that my own pie menu gets replaced by the addon-specific one?

Yes, you can use that code in Command tab like this:

bpy.ops.wm.call_menu_pie(name="object.hair_tool_menu")

ā¤ļø 2 likes


šŸ”— View on Blender Artists