Post #2444: Hi @roaoao

📋 Metadata

🏷️ Tags

pie-menu hotkeys advanced unsolved

  • Pie Menu Editor
  • Python Scripting
  • Context sensitive menu

💬 Content

Hi @roaoao

L.operator(“object.editmode_toggle”, text=“Object Mode” if C.mode == ‘OBJECT’ else “Edit Mode”, icon=‘OBJECT_DATAMODE’ if C.mode == ‘OBJECT’ else ‘EDITMODE_HLT’)

You wrote this for me some time ago. I was wondering if it would be easy enough for this to include draw/object mode for when grease pencil is selected. I couldn’t make it work with the default Context sensitive menu that comes with PME since it is limited to mesh,any, and none object (it would be great if items like greasepencil and lights were separate categories as well…


🔗 View on Blender Artists