Post #2727: ![](https://blenderartists.org/user_avatar/blenderartists.org/pinhead/48/528486_

πŸ“‹ Metadata

🏷️ Tags

pie-menu hotkeys intermediate solved

  • Stack Key Editor
  • Remember State option
  • Python Scripting

πŸ’¬ Content

Pinhead:

Ok, I was able to create something like this using stack key.
It does not work perfectly as if I wanted to, but somehow it works.

Yes, you did it right. But it’s better to set required values instead of toggling them:

bpy.context.space_data.show_gizmo_object_translate = True; bpy.context.space_data.show_gizmo_object_scale = False; bpy.context.space_data.show_gizmo_context = True; bpy.context.space_data.show_gizmo_object_rotate = False



bpy.context.space_data.show_gizmo_object_rotate = True; bpy.context.space_data.show_gizmo_object_translate = False; bpy.context.space_data.show_gizmo_object_scale = False



bpy.context.space_data.show_gizmo_object_scale = True; bpy.context.space_data.show_gizmo_object_rotate = False; bpy.context.space_data.show_gizmo_object_translate = False



bpy.context.space_data.show_gizmo_context = False

Also Remember State option will be useful in this case:


❀️ 1 likes


πŸ”— View on Blender Artists