How to open the Animation window from an editor script ?

Hi !

I’m currently working on a tool (based on editor’s scripting) which will permit to edit FBX animations.
Actually all is working fine, but to be more “user friendly”, i need to automatically open the animation window.

Did someone know how to display the animation window from script ?

Thanks !

here you go:

if (GUILayout.Button("open animation window"))
{
    EditorApplication.ExecuteMenuItem("Window/Animation");
}

thanks for that question it’s nice to know it :smiley: