Importing AnimatedSprite2D SpriteFrames to Animations Results in Invalid AnimationLibrary file message

Godot Version

Godot Engine v4.2.2.stable.official

Question

(Am new to Godot here) I was looking to use a state machine with my sprite frames that were created in an AnimatedSprite2D node but there seems to be no option to do so. So I figured the next best thing would be to export the Animations from the Sprite Frames. After ensuring my animations looked correct, I clicked on the down arrow (‘V’) on ‘Sprite Frames’ in the inspector and ‘saved as…’ which saved the file as a .tres file. I went ahead and created an AnimationPlayer, popped over to the ‘Animation’ tab in the bottom pane, clicked the ‘Animation’ button then selected ‘Manage Animations…’ This opened a new window where I clicked ‘Load Library’ and selected my .tres file. Upon opening I’m greeted with the message “Invalid AnimationLibrary file”.

Is there a different way to export those sprite frames and load them in an AnimationPlayer?

So I did find this video: https://www.youtube.com/watch?v=-PEjIzzm4HM which helps explain that you can use AnimatedSprite2D sprite frames as a container to hold individual files or frame separated sprite animations. Once the sprite frames are created, you can add an AnimationPlayer, then in the AnimatedSprite2D, click the ‘animation’ tab at the bottom, move to the right pane and choose the animation you want to make using key frames. Once the animations are created choose ‘Animations’ drop-down and click ‘Manage Animations…’ Then click the save icon next to each animation. Once saved, they can be loaded on the AnimationTree and can be used ion the AnimationTree window.