Last active
November 7, 2023 04:09
-
-
Save NathanSweet/c8e2f6e1d79dedd56e8c to your computer and use it in GitHub Desktop.
Adobe Photoshop script to export to Esoteric Software's Spine: http://esotericsoftware.com/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please note this script has moved: https://github.com/EsotericSoftware/spine-scripts |
Hi,
How can i do this for CS5 version of photoshop?
This script will fail to write a json file if one of your layers have non-english characters in the layer name.
To fix this, you need to add:
file.encoding = "UTF-8";
between creating a new file object using "new File" and calling file.write().
Please use my fork for the fixed version.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello guys,
Error importing skeleton.
I had message when you import files from a photoshop - An error occurred while importing yhe skeleton.
Sptires also did not appear.
I decided to deal with the .JSON file and found the cause of the error:
Setting - sprite size - using fractional values and added an extra comma (like (x,5,y,z,)), so JSON did not load correctly.
To fix this bug I use nopad-find&replace command, but it`s not very convenient, maybe you can take into account this case in your Script.
Thanks