• Runtimes
  • about unpack

A basic question about batch processing: I want to use the Spine CLI to unpack a PNG. What command should I use?

Environment: macOS
Directory structure:

1.atlas
1.png
spine/

I tried using the following command:

Spine -c ./400_fgtc.atlas -o ./spine/ -i ./400_fgtc.png
But it didn't work.

In Spine, only two parameters are required, but I don’t understand what the third parameter, -i, should be.
If -i is for the atlas file path, then what should be specified for -c?

-i, --input: Path to the folder containing the atlas image.
-o, --output: Path to save the unpacked image files.
-c, --unpack: Path to the atlas file (.atlas file).
Related Discussions
...

To unpack a PNG using the Spine CLI on macOS, you should use the --input, --output, and --unpack parameters correctly. The -i parameter should point to the directory containing the atlas images, -o should specify the output directory where you want the unpacked images to be saved, and -c (or --unpack) should be the path to your .atlas file. Here's how you can structure your command:

Spine --input ./ --output ./spine/ --unpack ./1.atlas

In this command:

  • --input ./ specifies the current directory where your 1.png is located.
  • --output ./spine/ specifies the directory where you want the unpacked images to be saved.
  • --unpack ./1.atlas specifies the path to your atlas file.

Make sure that the paths are correct and that the .atlas file correctly references the 1.png file.

    Spinebot got it :