godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.26k stars 101 forks source link

Add ability to copy and paste animations in SpriteFrames #12604

Open cherrythecool opened 3 weeks ago

cherrythecool commented 3 weeks ago

Describe the project you are working on

I'm working on a 2D rhythm game that uses spritesheets excessively.

Describe the problem or limitation you are having in your project

If I want to combine two SpriteFrame resources together, I need to manually copy the frames from one and re-setup the animation in the new merged SpriteFrames resource.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Adding a simple right click menu or copy button to copy animations entirely (looping mode, framerate, AND frames included), and being able to paste them into another SpriteFrames would make this process much simpler, and much more intuitive.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

When the user right clicks on an animation in the SpriteFrames editor, it would open a context menu that lets you copy the animation. Then when you open another SpriteFrames, there is a paste button on the top list of actions in the animations list (like with the new animation, duplicate, delete buttons, panel might have to be extended a little bit), that you can press to add that copied animation to the newly opened SpriteFrames.

If this enhancement will not be used often, can it be worked around with a few lines of script?

This might be able to be worked around with an editor plugin (I'm not entirely sure), but I don't think that is very convenient.

Is there a reason why this should be core and not an add-on in the asset library?

This is about improving the out-of-box experience for the SpriteFrames menu.