How to hide or show 3D mode gizmo per script?

Hallo,

I try to create an editor plugin for a specific object type. When I have my menu open, I want the object to be immobile, so I use the official unofficial method selected_node.set_meta("_edit_lock_", true). This toggles the lock icon, but the problem is that the gizmo of the currently active mode (e.g. move) is still visible. And vice-versa: if I remove the _edit_lock_ meta of the selected node, then the gizmo is still missing.

So the question is, how I can update the gizmo visibility? (Also, I didn’t find a way to actually change the current mode via script.)

Reselect the selection.

Hmph, I guess so. I noticed that just clicking the lock icon has the same faulty behaviour.

Thank you.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.