Post #2376: ![](https://blenderartists.org/user_avatar/blenderartists.org/casterle/48/570987

📋 Metadata

🏷️ Tags

pie-menu custom-scripting intermediate solved

  • Pie Menu Editor
  • Custom Tab
  • Python Scripting
  • Property Enum

💬 Content

casterle:

I’ve seen other pie menus that would display, in this case, View Mode in the menu, and when selected/hovered other items would ‘fly out’ around the selected item

Hope this helps. Try in Custom tab:

s = C.space_data.shading; L.prop_menu_enum(s, 'type', text=L.enum_item_name(s, 'type', s.type))

casterle:

How can I display “Wireframe” in one of my menu slots and have it act exactly as the one on the Z menu acts. In other words, if I am in Wireframe mode it should come up highlighted, else not.

Try this code inCustom tab:

L.prop_enum(C.space_data.shading, "type", "WIREFRAME")

🔗 View on Blender Artists