• Editor
  • Move Skins Png Assets to different folders

  • 編集済み
Related Discussions
...

Hi, please help me with this

I want to move pngs assets from inside the images folder to specific folders in the images folder, but after moving them, Spine say "Some image files could not be read" i dont know how to relink the images.
I tried dragging the image from the new folder to where its missing ant it is working, but im sure there are other fastest ways to do it.

Hi, you can use Find and Replace to change the attachment path on many attachments at the same time.
Please see Tree - Spine User Guide: Find and Replace for more information.

Here's an example where I replace boy/ with images/boy/ in the path for all region and mesh attachments in the current skin

And here's an example where I use ^ under Find to match the start of my path and then replace it with images/boy/

So to get what you're after, first move your pngs into the folders where you want them, then use Find and Replace to update the path of your attachments.

I hope this helps!

So, im not sure why it doesnt work for me.First of all let me tell you about what folders do i have.So i initially had all my images assets in the same place, in the images folder.Everything is assigned and it works ok.But then i made a new folder called Skin_001 and moved all the assets of that skin via windows explorer cut and paste in that folder.So, what exactly should i write in the search tab of the Find and Replace in this case?

sounds like you want to use:
Find: ^
Replace: Skin_001/
Enable First occurence and Regular expression
Scope: Current skin (make sure you have the correct skin selected before opening Find and Replace).
Field: Name
Types: Region, Mesh

Its still not working unfortunately.I dont know why.

Im posting these screenshots.

The CH_001 its the selected skin.
Pngs were moved to CH_001 folder in the images folder as you can see.

I'm afraid I can't say what the problem is from your screenshots. Please send the project to contact@esotericsoftware.com with a mention of this thread, then I'll take a look at it.

In the second screenshot the replace looks right. What doesn't work after your click Replace?

This may help, as it describes how Spine finds image files using the attachment name and path:
Images - Spine User Guide: Image file lookup