• Editor
  • Photoshop to Spine Export Isuue (merging layers)

I have 4 skins. When I export it from PSD single file, its merges with layers during trimming and exporting with overlap. When I export Single Skin from individual photoshop files. It's working fine. I want to understand why it's creating an issue.

I want to export 4 skins with a single PSD file to PNG for my spine project. I am using Photoshop to Spine 4.1 version and Photoshop 2020.

Please check the attached SS and Link of PSD.

https://www.dropbox.com/s/z7moqxije86vb9q/Untitled-2_worked.psd?dl=0

Please help me to solve it.

Thank you in advance.

Related Discussions
...
  • Modificato

It looks like there might be a bug in PS once a total of 500 layers+groups have been reached. The script generates additional layers, so even if you have less layers+groups you might hit this number. We're investigating if there is a way around this, but until then I suggest splitting your layers up in multiple files.

Please note that setting the opacity of a layer or group to 0% does not mean it is ignored. If you want to ignore a layer you should hide it or add the [ignore] tag.
Additionally, using the [bone] tag without a name will not work. You need to give the layer a name, for example [bone] left arm.
Lastly, you're running an old version of the script, the latest version can be found here: https://github.com/EsotericSoftware/spine-scripts/tree/master/photoshop

Thanks for your support. Yes, you are right there are more than 500+ layers in the whole photoshop file. My developer is asking me to provide all skins in a single JSON file. I have tried to send the theme individual skin but it's not placing position as it should be. I am UI/UX designer and I got this task so I am new to this.

Is there any other way to add/import skins into created spine project? Because I have created a master body character in the spine with bones. I am just attaching all skins slots to the bones. After that, I have to provide poses and animation on characters.

Please help me to make it done. Thank you.

We've fixed the script to workaround Photoshop limitations when there are 500+ layers ("rasterize all" doesn't work!). Please grab the latest script (version 6.12) and it should work for you!

Using Photoshop CC 2017 it took 6 minutes and 15 seconds for the script to run, exporting 387 images. A colleague reported it taking longer with a newer version of Photoshop. That's a bit unfortunate but I doubt there is much we can do about it. 🙁

We also fixed the script for layers that have 0 opacity. Image files for those layers will not be written. If you want to hide layers but still have images written, you should use the visibility eye in Photoshop to hide them and uncheck Ignore hidden layers on the script dialog.

You made my day. Thank you so much. It's working fine now. I appreciate your help. :rock: :cooldoge: