I use Photoshop and Spine on a daily basis. We use the skin feature of spine frequently.
I start with a layered Photoshop file and run the "PhotoshopToSpine.jsx" script that creates a Spine document
ready to go. I followed this process and got an error message " Multiple layers for the "BLUPortReel04Mid/BLUPortReel04Mid" skin in the "shootups_15" slot have the same name "shootups_15":
[skin]BLUPortReel04Mid/[skin:BLUPortReel04Mid]shootups_15.png
[skin]BLUPortReel04Mid/[skin:BLUPortReel04Mid]shootups_15.png
Rename or use the [ignore] tag for these layers. " I am confused because this is the format used for all of our skin files? Hundreds a week. Any help/advice would be greatly appreciated.
PhotoshopToSpine.jsx script issues
The error message you're encountering indicates that there are multiple layers intended for the same skin and slot combination in your Photoshop file, which have the same name. This is not allowed in Spine, as each layer intended to be a separate attachment within a skin must have a unique name. The error message suggests renaming the layers to make them unique or using the [ignore]
tag for layers you do not wish to export.
Given the context you've provided, it seems like the script is correctly identifying a naming conflict within your PSD file. Even though you've been using this format for all your skin files, this specific instance has caused an issue likely due to duplicate layer names within the same skin and slot. To resolve this, you should ensure that each layer intended for Spine has a unique name within its respective skin and slot. If the layers are indeed meant to be the same and should not be treated as separate attachments, consider merging them in Photoshop or using the [ignore]
tag on the duplicate layers you do not need to export.
Thanks! I will e-work it.
You can't have 2 layers with the same name for the same skin. You can have the same name for a different skin though.
The log message shows a group [skin]BLUPortReel04Mid
that has a layer [skin:BLUPortReel04Mid]shootups_15.png
. You don't need to repeat the [skin]
tag on the layer. It's enough that it's in a group that has the [skin]
tag.
Thanks!
No problem!
Note that in 4.2 you don't need the Photoshop script anymore:
https://esotericsoftware.com/forum/d/25617-spine-42-imports-psds-directly-no-photoshop-scripts-needed
This is also much faster!
Cool. Can't wait. We are on 4.1.24, can't upgrade until my developers do . . .