Locking an animation window from script?

I’m looking for a way to lock an animation window from an editor script, I don’t mind using reflection, I just can’t seam to find the property that is responsible for that?

I want to open an animation window with a specific animation clip (from script), and keep editing it regardless of the selected object.

1 Like