• Editor
  • [PhotoshopToSpine] weird nesting of [folder] tag

Related Discussions
...

As per title,

in order to have a clean and easy to navigate folder structure (I'm kinda obsessed with it, sorry :lol🙂, I've arranged photoshop folders as follows:

however, it so happens that the exported folder structure looks like this:

So basically the script it's sort of inverting the nested structure, as if it was "[folder] dryad" and "[skin] skins".

Not sure this is a known bug or anything like that?

Thanks!

Hello, the folder tag manually creates a folder with the name you specify next to the tag.
To avoid this simply remove the folder tag and the script will not create a folder.

I wanted to create a [folder] skins as main dir and [skin] dryad as subdir.
Script inverted names for whatever reason, and exported [folder] dryad as main dir, and [skin] skins as subdir.
If this is not a bug, i don't know what else is...

EDIT:
Nevermind.
We've managed to edit the script and that bug is gone. Thanks anyway.

Sorry I'm a bit late. It does indeed look like a bug. Would you like to share the fix? Otherwise we'll look into it further.


What version of the script are you using? The version is in the script at the top, eg var scriptVersion = 5.1;. I tried with 5.1 and it worked as expected:

图像因不支持 HTTPS 被隐藏。 | 仍然显示


图像因不支持 HTTPS 被隐藏。 | 仍然显示


That's a little more complicated that your example, but I tried a simple one with just 2 [folder] layers and it also worked.


Gah, sorry my reading comprehension has failed me. 😃 I see you are using a folder tag with a skin tag in it. It's not a bug, it's just the way the script works that the skin folder is at the root. I think your proposal makes sense, so we've made the changes in script v5.2. As always, you can get the latest here: http://esotericsoftware.com/spine-scripts/PhotoshopToSpine.jsx

1 个月 后
Nate :

Gah, sorry my reading comprehension has failed me. 😃 I see you are using a folder tag with a skin tag in it. It's not a bug, it's just the way the script works that the skin folder is at the root. I think your proposal makes sense, so we've made the changes in script v5.2. As always, you can get the latest here: http://esotericsoftware.com/spine-scripts/PhotoshopToSpine.jsx

Sorry for the super late reply to your late reply, Nate :lol:

We basically edited line 281 of the script as follows:

var placeholderName = layer.attachmentName, attachmentName = placeholderName, attachmentPath = layer.attachmentPath;
if (skinName != "default") {
    attachmentName = attachmentName;
    attachmentPath = attachmentPath;
}

So all you need to do is using double tags like this:

and the script will no longer consider any skin folder as the root by default, but will follow a user-defined/tag-based structure.

I will update Script version then, and check what you guys did 🙂

Thanks for investigating this, and until next time!