• Editor
  • scaling when exporting via commandline

I'm trying to sale down the texture images when I use the command line to export.

if the export.json has
"scale": [ 0.5 ],
then it works as expected, the atlas is scaled to 50%

but if I keep that line and pass
`


scale 0.25`
it uses the value in the export.json file. If I remove the line from the export.json file then it exports at 100%.

It seems the `


scale` parameter is ignored.

Am I doing something wrong? I want to be able to scale the exports differently for each .spine file.

Related Discussions
...
  • تم التحرير

The `


scale` parameter is currently only for importing a project or skeleton data into a project:
Export - Spine User Guide: Usage

Unfortunately there's no way to specify scale for the texture packing on the command line. Is there a reason you can't specify it in the packer settings JSON? Note you can specify multiple scales there and it will create an atlas for each one.

Worst case you could write a script that modifies the packer settings JSON with the scale you need.

Worst case you could write a script that modifies the packer settings JSON with the scale you need.

That what I ended up doing. It's for a big automated art pipeline and I didn't want to maintain hundreds of .json settings files. I ended up writing the settings .json for each file and deleting it after the build. Works great.