- Uređeno
Lost rotate data when import data from json
I exported a json(checked Nonessential), but when I imported it to spine editor, the rotate data will be reset to 0.
ps: only the attachment with mesh will be reset to 0.
As far as I know, mesh rotations aren't stored in the json.
Instead, each vertex just has a position offset from its slot's bone.
I guess it's one piece that can't be recovered from json.
I don't care about this bug, but I need the rotation data in json.
how can I get the rotation data? parse the .spine file? But where can I get the .spine file format document?
As pharan said, we do not export the rotation data to the JSON file, but instead rotate the vertices before export and only write out the rotated positions. There's no way to get the rotation data from the exported JSON or .skel files, and it is unlikely we are going to change the format in the foreseeable future I'm afraid.
I want to read the data from the .spine directly, where can I get the .spine file format document? thanks.
The .spine format is not public as it changes frequently I'm afraid.