• Editor
  • Splitting a Spine Project into Multiple Projects (One Skeleton per Project)

Hi everyone,

I have a Spine project that contains multiple skeletons. I’m considering writing a small tool that uses the Spine CLI to split the project into several individual Spine projects, with each project containing only one skeleton (as shown in the attached image). I would like to know if this approach is feasible, or if there is a faster method to achieve the split.

Thanks in advance for your help!

Related Discussions
...

Yes, you can first export each Spine skeleton in JSON or binary format via the CLI and then import each skeleton as a new Spine project. You can execute commands like the following:

Spine -i <Path to a folder, project, or data file> -o <Path to write export file(s)> --export json
Spine -i <Path to exported .json file> -o <Path to project file to import into> --import

For more information on export and import commands, please see the Spine User Guide:
https://esotericsoftware.com/spine-command-line-interface#Export
https://esotericsoftware.com/spine-command-line-interface#Import