To address your issue of exporting specific skeletons using the Spine CLI, you can use the command line interface to automate the export process. Unfortunately, there is no direct option to ignore the export settings and export all skeletons or only specific skeletons directly from the CLI. However, you can achieve this by using a combination of JSON or binary data files and the CLI.
Here are the steps you can follow:
Export the project to JSON or binary format:
Export your Spine project to a JSON or binary file. This will include all skeletons in the project.
spine -i /path/to/project.spine -o /path/to/output/ -e /path/to/export.json
Edit the JSON or binary file:
Modify the JSON or binary file to include only the skeletons you want to export. You can write a script to automate this process if you have many files.
Import the modified JSON or binary file and export:
Use the CLI to import the modified JSON or binary file and export the skeletons.
spine -i /path/to/modified_skeleton.json -o /path/to/output/ -e /path/to/export.json
Alternatively, you can use the CLI to export all skeletons by ensuring the Export
checkbox is checked for all skeletons. This can be done manually or by writing a script to modify the project file.
For more details on using the CLI for exporting, you can refer to the Spine User Guide: Command line.
Here is an example of how you can use the CLI to export a specific skeleton:
spine -i /path/to/project.spine -o /path/to/output/ -e /path/to/export.json --skeleton "skeleton_name"
This command will export only the specified skeleton from the project.
For further automation, you can create a script that iterates through all your Spine files and performs the export process.