- Editado
PhotoshopToSpine Script - only creates one undefined image
Good Day,
When using the latest version of the script all the layers with [merge] and a name in the layer get renamed to undefined.png and overwrite each other.
It order to get my image to work I used an old version of the script. Hopefully it doesn't break the import.
I am using Photoshop 22.1.0 and when I preview the folder where the images should be written I can see them being created and overwritten as a new one is created.
Thanks,
Justin
Hello,
The [merge] tag is supposed to be used on folders only, and not on layers.
Using older versions of the script should be fine, but the latest version should still work. Could you confirm the tag structure you're using by posting a screenshot or by sending the problematic file to contact@esotericsoftware.com so we can have a look at it?
You can get the latest version of the script here: https://github.com/EsotericSoftware/spine-scripts/tree/master/photoshop
(Click here for a direct download: http://esotericsoftware.com/spine-scripts/PhotoshopToSpine.jsx )
Hi Erika,
According to the documentation [merge] is for Layers to output a single image.
Has this changed? I use this so I can keep my lines, colors, shadows and highlights separate in the PSD file. This way I can easily go back and edit the layers for tweaking the look of a character after the fact but still maintaining shape and size.
From the https://github.com/EsotericSoftware/spine-scripts/tree/master/photoshop page:
Group names:
[merge] Layers in the group are merged and a single image is output.
I am using ex. tag structure Layer Group Names:
[merge] Head
[merge] Upper Body
[merge] Lower Body
When I run the old script each group is merged into one image named <Group Name>.png. (Ex. Head.png) With the new script they are merged and named as undefined.png over and over each time overwriting the last merged image.
Thanks,
Justin Allers
Hello Justin,
As stated on that page, you cannot use the merge
tag on a layer itself, bacause there would be nothing to merge, but you can use it on folders to output a single image of their contents.
Did you send the problematic file? A screenshot could also be helpful to see how you used the tags.
Hello, I am running into the same issue described in this thread. I have folders with the [merge] tag on them and inside the folders are layers that I expected to be merged into a single image. There are no tags on the layers themselves. I am running Adobe Photoshop 2021 and am using the latest version (v5.7) of the Photoshop to Spine script (just in case, I downloaded it specifically using the link you provided above: http://esotericsoftware.com/spine-scripts/PhotoshopToSpine.jsx). When I run the script, each new image overrides the old one and I am left with a single "undefined.png" image. Screenshot attached.
Thanks for any further help or suggestions!
Gene
We are tracking this bug here: https://github.com/EsotericSoftware/spine-editor/issues/585
Older versions of the script appear not to have the problem. Please follow the issue to be notified when it is resoved!
Will do. Thank you for letting me know!