Post #3558: ![](https://blenderartists.org/user_avatar/blenderartists.org/stefakapapy/48/592

📋 Metadata

🏷️ Tags

pie-menu hotkeys configuration intermediate solved

  • Pie Menu Editor
  • Python Scripting
  • Hotkey Configuration
  • Custom Icons

💬 Content

Stefakapapy:

For example enabling the pie if object is MESH or CURVE ?
I tried
return C.active_object.type == 'MESH' or C.active_object.type == 'CURVE'
And also
return C.active_object.type in ['MESH','CURVE']

Both scripts are ok. Use them with Object Mode keymap for example.

Stefakapapy:

is it possible to display a single text.

Yes, here is the code for Custom tab:

L.label(text=slot, icon=icon, icon_value=icon_value)

❤️ 2 likes


🔗 View on Blender Artists