nataku wroteIt's a command line way to make a lot of characters have the same animation.
Is it possible to override a character's animation on the command line when you modify it later?
I would not recommend to override parts of your worked-on project files via command line scripting. Instead it would be better to have the following folder structure:
animations
your-animation-set.spine
characters-without-animation
male-character.spine
output-animated-characters # <
---
this folder contains only generated files
male-character-animated.spine
<or>
male-character-animated.json
So your command line script would not touch the original character spine projects, it would instead create combined files in the output-animated-characters
folder. So you are safe to never loose any work, when e.g. your script does something wrong and corrupts or deletes the output file.
Explained differently: don't combine A
and B
to overwrite B
, instead combine A
and B
to C
.
Does this answer your question? Please let me know if you meant something different.