I want to use the CLI to generate a Spine file from a 3.6.53 JSON file and an image atlas folder, upgrade it to version 3.8.99, and then export it as a JSON file. How should I proceed?
How should I proceed?
To achieve your goal of converting a Spine 3.6.53 JSON file to a 3.8.99 JSON file using the CLI, you can follow these steps:
Import the JSON into Spine 3.6.53: Use the CLI to import your 3.6.53 JSON file and create a
.spine
project file. You can do this with the following command:Spine -u 3.6.53 -i /path/to/skeleton-3.6.json -o /path/to/skeleton.spine
Open the
.spine
file in Spine 3.8.99: Use the CLI to open the.spine
project file you just created with Spine 3.8.99 and export it as a JSON file:Spine -u 3.8.99 -i /path/to/skeleton.spine -o /path/to/skeleton-3.8.json -e /path/to/export-settings.json
Make sure you have the correct export settings in your export-settings.json
file to ensure the JSON is exported correctly. This process will upgrade your project from 3.6.53 to 3.8.99 and export it as a JSON file.
When importing a .json or .skel file into a Spine project, you also need to specify the -r <name> parameter. That said, Spine 3.6 does not support importing .json and .skel files into a Spine project. This was only added in Spine 3.7:
https://esotericsoftware.com/blog/Spine-3-7-released#CLI-improvements