Skip to content

Instantly share code, notes, and snippets.

@NathanSweet
Last active November 7, 2023 04:09
Show Gist options
  • Star 55 You must be signed in to star a gist
  • Fork 18 You must be signed in to fork a gist
  • Save NathanSweet/c8e2f6e1d79dedd56e8c to your computer and use it in GitHub Desktop.
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/
Please note this script has moved: https://github.com/EsotericSoftware/spine-scripts
@iamdash
Copy link

iamdash commented May 24, 2016

+1

@ryanmillerca
Copy link

I'm also having the broken image issue. Any ideas?
broken

@ryanmillerca
Copy link

Figured it out: you need to browse to the folder you exported images to. This fixes it! @adankoala
browse

@Jordimlaka
Copy link

Jordimlaka commented Aug 23, 2016

Hi,

This script saves the PNG with the color profile incrusted?, when the graphics is showed into Spine, these graphics cannot conserve the color profile aplied in photoshop.

Any ideas?

For other hand, i want to put one bone for each slot automatically when i export from psd, how can i have edit the script to do this?

Thanks.

@BethHicks
Copy link

This is a total noob question, but i rarely use scripts... now I have saved it into my extendscript toolkit... not even sure if i did it right. lol. how do i actually run the script to get the files i need to get them to show in Spine? Here's an image of my layer setup...

layer setup

@AlexMaan
Copy link

Hello guys,

Error importing skeleton.
I had message when you import files from a photoshop - An error occurred while importing yhe skeleton.
import_error
Sptires also did not appear.
import_sprites_error
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.
json_comma_error

Thanks

@skpadayatchi
Copy link

Hi,
How can i do this for CS5 version of photoshop?

@leonidumanskiy
Copy link

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