Post #4061: I’m trying to set up contextual pie menus, so i have one hotkey to rule them all

📋 Metadata

  • Author: insideitall
  • Date: 2021-09-13 19:16:27
  • Type: question
  • Quality Score: 7/10
  • Replies (1): post_04063

🏷️ Tags

pie-menu hotkeys intermediate unsolved

  • Pie Menu Editor
  • Hotkey Configuration
  • Python Scripting

💬 Content

I’m trying to set up contextual pie menus, so i have one hotkey to rule them all.
All is working perfectly, Lights, Meshes, Empties.

I’d love to have a context menu if i have nothing selected tho. Previously i’ve been using:

return not C.selected_objects
but it still opens up the objects pie menu which is:
return C.active_object and C.active_object.type == 'MESH'

I’m guessing its because its using the active object?, which AFAIK you can’t deselect. anyone have some alternatives i can try?


🔗 View on Blender Artists