Post #2376: : post_02377
🏷️ Tags
pie-menu custom-scripting intermediate solved
⚙️ Related PME Features
- 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")