I'm trying to do some mass changes to all the .spine files in our project, and it seems like the only option for doing this in an automated way, is to export a file to .json, operate on it, and then re-import the .json back to a new .spine file. But for an initial test, I decided to see what would happen if I exported to a .json and re-imported to a .spine without touching the .json file at all; just a straight export-reimport.
When doing this, the .spine file goes from 295 KB to 179 KB, which is already worrying... and, when I re-export the result to .json again, so that I can diff the changes, it's full of strange things like:
most of the color values have changed:
some attachments have disappeared:
many triangles, vertices, and offsets have changed, although I haven't verified yet whether this has any effect; I'm having an animator check the result now.
The export settings file that I'm using has nonessential
set to true
, and cleanUp
set to false
, and none of the skeletons in this example file are set not to export, so what could account for all of these changes after passing through the .json format?