Force editor to use orbit tool via editor script

Hello!

I am writing a tool that allows you to preview assets in the editor in an isolated scene. Part of this tool involves hijacking the editor camera to put it into certain positions and/or have particular camera controls. The reason is so that the users of this tool don’t need to know hotkeys to change the camera mode or have to fiddle around with the scene or editor, I am trying to reduce friction as much as possible for these users.

How would I force the editor to always be using the orbit tool by default from a script?

Some related questions, but not as important as above:

  • How do I hide the selected object outline?
  • How would I force the editor camera to change position (e.g. on Update for a custom camera controller)?

Would still appreciate help with this. :slight_smile: