Post #2011: ![](https://blenderartists.org/user_avatar/blenderartists.org/colacuve/48/535989

📋 Metadata

  • Author: roaoao
  • Date: 2019-03-09 05:35:27
  • Type: answer
  • Quality Score: 8/10
  • Reply to: post_02004

🏷️ Tags

pie-menu configuration intermediate solved

  • Pie Menu Editor
  • Python Scripting
  • Custom Icons

💬 Content

Colacuve:

Is it possible to have more than one context-sensitive menu set up?

Yes, I’ve updated the example. It will be available in the next version.
Download and copy command_context_sensitive_menu.py file to pie_menu_editor/scripts folder and import context_sensitive_menu.json file.

To add more context sensitive menus you need to name your sub-menus with some prefix/suffix. Eg:
CSM2: None Object, CSM2: Mesh, CSM2: Any Object
And update the code for the context sensitive menu (Command tab):

execute_script("scripts/command_context_sensitive_menu.py", prefix="CSM2: ")

🔗 View on Blender Artists