Post #2720: : post_02721
🏷️ Tags
pie-menu hotkeys advanced solved
⚙️ Related PME Features
- Pie Menu Editor
- Custom Icons
- Python Scripting
- Macro Editor
💬 Content
Pinhead:
I want to create button to toggle transform, rotate,scale and hide gizmo.
The code adds toggle-able button (Custom tab in Blender 2.8):
value = getattr(C.space_data, "show_gizmo_object_translate", None); operator(L, "pme.exec", text=slot, icon=icon, icon_value=icon_value, depress=value, cmd="value = C.space_data.show_gizmo_object_translate; C.space_data.show_gizmo_object_translate = C.space_data.show_gizmo_object_rotate = C.space_data.show_gizmo_object_scale = C.space_data.show_gizmo_context = not value") if value is not None else L.separator()
❤️ 1 likes