-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Copy/Paste/Cut options for AnimationTree Editor #8146
Comments
I ran into this, too and I'm thinking about giving an implementation a try. I think it needs #7899 and #4336 first, but instead of using weird paths I'd just extend ResourceSaver / ResourceLoader with methods dealing with PackedByteArray. Then the various animation editors could serialize data for the clipboard and deserialize clipboard data, making copy paste across the different editors possible. I haven't checked yet, but if the editor instances are not recreated each time you switch to a blend tree / state machine, I could get away with just cloning stuff like the visual shader editor seems to do. I'll have a closer look in the evening, but maybe somebody can provide some pointers. EDIT: this issue godotengine/godot#80009 is related. |
My lunch break investigation showed that the editors are only created once. The approach the visual shader editor uses can be used here, including supporting copy & paste between different trees / state machines / etc. The only real disadvantage is that you can't copy & paste between different Godot editor instances, but that's something people can live with, I think. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@colinmbo Please don't bump issues without contributing significant new information. Use the 👍 reaction button on the first post instead. |
Note that you can copy the So if you want to extract an animation node from inside an animation tree, one workaround for now is:
|
Are there any updates on this? There are multiple entries on this topic, some are open and some are closed, and there's at least one pull but that seems to be stuck since 4.3 was being released, and it's pointing to Would love to see some traction here :) |
Describe the project you are working on
a fps game
Describe the problem or limitation you are having in your project
First, my graph like this:



then, I change my graph to this:
And want to reuse my
RunningLocomotion
BlendSpace inLocomotion
StateMachineI want to move a BlendSpace2d node into another blending node. However, there is no way to move a node into another without re-making it. It would be good some simple options such as copy, paste, cut, duplicate and similar.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Adding the options when right mouse input is pressed and enable keys such as Ctrl + C
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
/
If this enhancement will not be used often, can it be worked around with a few lines of script?
/
Is there a reason why this should be core and not an add-on in the asset library?
/
The text was updated successfully, but these errors were encountered: