• Tutorials
  • [Photoshop] [Editor] [Video] Photoshop to Spine script

  • Змінено
Related Discussions
...

We've created a new tutorial video to help you learn how to effectively use our Photoshop To Spine script, check it out!

Everything in the script seems to work in CS6 except for Ruler origin. Is there something I missed?

The result is everything being placed on the bottom right (default).

*Edit: Ah, I skipped that step where I had to drag from the top left corner of the ruler. Sorry.

Glad you figured it out! The guides are there because sometimes Photoshop can lose your ruler origin and without the guides it's difficult to place it exactly where it was.

10 днів пізніше

Can you give us some guidance on a recommended photoshop (or Krita which is what we use) layer structure? For example it seems like it might be something like

  1. [skin] guy

    1. [bone] head

      1. [slot] neck

        1. nose

        2. eyes

        3. eyebrow

  2. [skin] girl

    1. ... repeat of above ...

There is a problem in that set up, particularly the slot part. You cannot display more than one attachment in one slot.

Basic Concepts

A slot can have any number of attachments, but only one attachment can be visible at any given time. A slot cannot have multiple attachments visible at the same time because the order those attachments are drawn would be undefined.

Presumably it just displays the first in line?

Spine would show the first attachment after you import the data, then you could choose which is visible, but only one attachment for a slot can be visible at any time. The thing is, you probably want to have the nose and eyes and eyebrow visible at the same time, so they should be in separate slots. You don't need to create a Photoshop group and use the [slot] tag unless you want multiple items in the same slot. If you just have a nose layer, the script will automatically create a slot called nose.

BTW, you don't have to put the tag at the beginning of the layer name. I like to put it at the end, eg guy [skin].

Thanks Nate, yeah I like at the beginning.

How about this?

  1. [skin] guy

    1. [bone] head

        1. nose

        2. hair

        3. eyebrow

        4. [slot] eye

          1. angry_eye

          2. happy_eye

          3. closed_eye

  2. [skin] girl

    1. ... repeat of above ...

Looks good!

5 місяців пізніше

It is new for me. I will try to apply this option in Photoshop. Thank you to design a lovely video.

4 місяці пізніше

I keep getting an error that says: "Error importing skeleton, An error occurred while importing the skeleton. Please be sure to choose a valid skeleton JSON or binary file."
I've followed everything the video says about 10 times over now, any help would be greatly appreciated.

Hello, what version of the script are you using? with what version of Spine? My first thought is that there might be a mismatch causing this.

The spine version is 3.8.79, its the trial version.
The script is version 4.4.

Please update the script to the latest version as explained in the video, this should fix the issue 😃 (the latest is 4.7)

I'm sorry but I don't see anywhere in the video, the explanation of updating the script. Would it be difficult to just update the link to the latest version for the script?


Okay, so I saw that the script has been updated to 4.8, and that Spine has been updated to 3.8.82. I've downloaded both the new updates, and still for some reason I'm getting the same error message when I try to import the date from photoshop into spine.
I've also noticed that when I run the script in photoshop it's not turning any of the psd files into JSON files on my computer. It's storing all the images only as png.

If the script didn't output a Json, what were you importing in Spine?

Make sure the script has the setting Write Spine JSON checked to ensure it will export a Json.
You can also check where the Json will be saved in the Json output path field.

Joncheen написав

I've also noticed that when I run the script in photoshop it's not turning any of the psd files into JSON files on my computer. It's storing all the images only as png.

Note that the script outputs one JSON file (if you have Write Spine JSON checked, as Erikari mentioned) and a number of PNG files (one per layer in your PSD). In Spine, you choose the JSON file to import, then you set the path under the Images node in the tree to where the PNG files are stored.

Yes I do have "Write Spine JSON" checked in the script setting.
On the script I can see the path for both the images folder and for the JSON file. I can find the images folder, but there's no sign of the JSON file.

Thank you so much for you guys help! btw


So yes just to sum it up after many tries. The script is just no producing a JSON file .