• Bugs
  • Difficult to import JSON skeleton to Spine exported by PS

Related Discussions
...

Hi, I'm a software engineer named Aige, Firsts of all thank you for this great software. I study 2D animation recently because of work reasons, I created a demo import skeleton from Photoshop exported step by step followed tutorial video:

My demo is very very simple, just three basic geometry graphics:

I follow tutorial video and download script from: https://github.com/EsotericSoftware/spine-scripts/tree/master/photoshop, and put it in my Photoshop script folder. When i export used script, "*.json" file and "images" folder generated under my project folder:

All seems ready. But when i import data to Spine, Spine tips JSON skeleton error:

I clicked "Open Log", dialog was dismissed and nothing happen...
I try again and again through my whole night...each PS ver, each Spine ver, also each script ver...but the error still happen...Is my OS problem? or the trial version of Spine can't import anything?
My work environment:

  • OS: WIN 10 for Home.
  • PS: Adobe Photoshop CC 2019
  • Spine: Spine 3.8.12-beta Trial...

My demo project:
example.zip

Sorry you are having trouble! We just released 3.8.12-beta a few hours ago and in that version the JSON and binary formats have changed. You'll need to use the Photoshop script from the 3.8-beta branch:
spine-scripts/photoshop at 3.8-beta · EsotericSoftware/spine-scripts
Since this is likely to come up a lot until 3.8 comes out of beta, maybe we'll find a way to support importing the old format.

Nate wrote

Sorry you are having trouble! We just released 3.8.12-beta a few hours ago and in that version the JSON and binary formats have changed. You'll need to use the Photoshop script from the 3.8-beta branch:
https://github.com/EsotericSoftware/spine-scripts/tree/3.8-beta/photoshop
Since this is likely to come up a lot until 3.8 comes out of beta, maybe we'll find a way to support importing the old format.

It works!!!thx very much!!!

일 년 후
Nate wrote

Sorry you are having trouble! We just released 3.8.12-beta a few hours ago and in that version the JSON and binary formats have changed. You'll need to use the Photoshop script from the 3.8-beta branch:
https://github.com/EsotericSoftware/spine-scripts/tree/3.8-beta/photoshop
Since this is likely to come up a lot until 3.8 comes out of beta, maybe we'll find a way to support importing the old format.

I try to use a tool to convert spriter to JSON for Spine.
https://github.com/zhong317/spriter2spine

Apparently this tool works fine (Base on Spriter Pro R11 and Spine 3.8.) but with my Spine Pro version 3.8.99, I have exactly the same problem when I try to import Json = JSON skeleton error.
Is it because of the change of JSON and Binary after 3.8.12 Spine version? Any help to resolve this problem?

I'd like to be able to use some assets from different Stores which propose "Spriter" basic animations: could be a good start.
Like Robert Brooks
https://www.gamedeveloperstudio.com/

Thank you in advance.

@A-TEAM Production, exports from any version of 3.8.xx should work with the latest 3.8 runtimes. My guess is the spriter2spine tool produces invalid data. If you post a JSON file that won't import, we can take a look.

Hi Nate, thank you for your answer and for your time to take a look at it.

At the Github of the tool (where theres is also the sources of the tool), you have an exemple of JSON which was converted from .SCML file (Spriter)

Here it is:
https://github.com/zhong317/spriter2spine/blob/master/test/Animations-Fallen_Angels.json

Original file (.SCML) and images are in the folder "Test"
https://github.com/zhong317/spriter2spine/tree/master/test

Thank you in advance for your time Nate.

Thanks. I'll check it out in the morning, it's late at the moment


need to crash! :dizzy:

Hi Nate,

Have you got the time to take a look to it?
Does SpriterToSpine tool produces invalid data and is it possoble to fix the tool?

I'm sure that it could be helpful for artists who come from Spriter and for Studio who want to work with assets with Spriter animations as basic templates.

Thank you in advance.

8일 후

Hi Nate,

I don't really know how "Spriter2Spine.exe" works and if it uses the external .py script that you modified,
so I try to use a Python launcher to be sure to use the final script with the Spriter example provided with this Github (\spriter2spine-master\test\Animations.scml ... but it doen't work for me

"spriter2spine-master\test\spriter2spine.py", line 281
print '[WARNING] Unsupported bone hierarchy animation: entity name(%s) ani name(%s) %s' % (entity['name'], ani['name'], reason)
^
SyntaxError: invalid syntax"

Any idea? Do you manage to convert the \spriter2spine-master\test\Animations.scml in .json format which work with Spine?

13일 후

Sorry I missed your post! Better later than never.

I'm not sure what that exe is. I assume it just runs the python script, but I would not run executables from the wild internet. The python script is easy to run by itself:

python spriter2spine.py -i xxx -o xxx

I'm not sure why that doesn't work for you. Do you have Python version 2.7? Other versions may not work. You would get it here:
https://www.python.org/downloads/release/python-2718/

You could also request the author of the github project to build a new exe, eg by filing an issue:
https://github.com/zhong317/spriter2spine/issues