About
By Kaiiboraka. Made in Godot 4.2, updated in 4.5 and in 4.8. Other Godot versions not thoroughly tested.
Re-uploaded and updated from my original plugin on the old Godot Asset Library: https://godotengine.org/asset-library/asset/4186
I was getting really fed up with the tedium of finding the AnimatedSprite, clicking on the Animation window, creating a new animation, key the "animation" property on the SpriteFrames, click yes to the dialog, and then keying every single frame (however long it is) by carpal-tunneling myself to tears going back and forth between clicking the little up-arrow on the frame, and the key next to it, over and over and over.
This does all of those things in ONE button press.
All you need to do is go to the AnimatedSprite, assign a SpriteFrames, select an animation, and click the button for each or every animation. EZ-PZ.
Usage
- Select an AnimatedSprite2D or AnimatedSprite3D node in the scene tree.
- The Inspector shows Auto-Key CURRENT Animation, optionally Auto-Key ALL Animations and Export Animations To Files, plus a Framerate field.
- Ensure it has a sibling AnimationPlayer node.
- Assign a SpriteFrames resource to your animated sprite.
- Select the animation you want to auto-key in the Animation property below Sprite Frames.
- Set the desired Framerate.
- Click the Auto-Key CURRENT Animation or Auto-Key ALL Animations button, as desired.
Settings
Plugin settings live in Project Settings > Addons > auto_key_sprite_frames:
| Setting | Default | Description |
|---|---|---|
show_all_animations_button |
true |
Shows the Auto-Key ALL Animations button. |
show_export_button |
true |
Shows the Export Animations To Files button. |
default_framerate |
16 |
Starting value for the Inspector's Framerate field. |
The Inspector's Framerate field controls the FPS used for the generated keyframes. It is an override for the next operation and is not written back to the plugin settings.
Under the hood
When the button is clicked, the plugin will:
- Find the sibling AnimationPlayer.
- Get the current animation name from the animated sprite (e.g., "walk").
- Create a new Animation resource in the AnimationPlayer with that name, or find an existing one.
- Automatically generate two tracks:
i. :animation: Sets the current animation name at time0.0.
ii. :frame: Creates a keyframe for every single frame of the animation in the SpriteFrames resource. The timing of these keyframes is based on the Inspector's Framerate field.
* WARNING: This will clear all existing frames of the above-mentioned tracks. - Set the animation's step (timeline FPS) to the selected framerate, and set the total length to match the sprite animation's duration.
This allows you to instantly create a perfectly timed AnimationPlayer animation from your SpriteFrames with a single click.
License
Licensed under CC0. I don't care what you do with it, go nuts. Credit me if you like.
Changelog for version v2.0.1
2026-11-20 19:11:00
No changelog provided for this version.