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.)