• Bugs
  • Photoshop to spine script error

Hi there!
Trying to use the script to export my images and after some time of "initialize" popup photoshop just closes.
I tried to debug and photoshop is closing at line with function hasBackgroundLayer () - not even enters it(i'm might be wrong)
Then i tried to turn off "Ingore background layer" but no results
My PS version is Adobe Photoshop: 21.2.1 20200716.r.265 2020/07/16: 2b9692040b x64
Spine script - scriptVersion = 7.16

What can i try to do?

Related Discussions
...

Photoshop should never crash because of any script, so that indicates a Photoshop bug. Unfortunately there's not much we can do.

You can try resetting Photoshop preferences by holding alt+ctrl+shift (Windows) or shift+command+option (Mac) while you open Photoshop.

You could try uninstalling and reinstalling Photoshop.

Can you try an older version of Photoshop?

You could try an older version of the script. For example, here's 6.13 (just before we rewrote the script to be much faster):
https://raw.githubusercontent.com/EsotericSoftware/spine-scripts/c9f29df5734789420076c7224cf3dc02e9483e11/photoshop/PhotoshopToSpine.jsx

You could try replacing:

first: hasBackgroundLayer() ? 0 : 1,

With 0 (no background layer) or 1 (you have a background layer):

first: 0,
Nate escreveu

Photoshop should never crash because of any script, so that indicates a Photoshop bug. Unfortunately there's not much we can do.

You can try resetting Photoshop preferences by holding alt+ctrl+shift (Windows) or shift+command+option (Mac) while you open Photoshop.

You could try uninstalling and reinstalling Photoshop.

Can you try an older version of Photoshop?

You could try an older version of the script. For example, here's 6.13 (just before we rewrote the script to be much faster):
https://raw.githubusercontent.com/EsotericSoftware/spine-scripts/c9f29df5734789420076c7224cf3dc02e9483e11/photoshop/PhotoshopToSpine.jsx

You could try replacing:

first: hasBackgroundLayer() ? 0 : 1,

With 0 (no background layer) or 1 (you have a background layer):

first: 0,

heyyy thank u! previous version worked like a charm, was just looking for it

this thing didn't work for me sadly
first: 0