• International
  • Exporting skeleton from PSD using a script

Hello. After separating assets in Photoshop, I use a script (PhotoshopToSpine.jsx) to export them. Then, I import the data and work using the generated JSON file.

However, I’m wondering if the following feature might exist.

When using PhotoshopToSpine.jsx,
names like [bone], [slot], [skin], etc. are applied in the JSON file,
and they work correctly when importing into Spine.

But when exporting as shown in the image below,

under the top-level skeleton, the structure looks like this:
root bone → firststep_main_nyangi~ fourthstep_main_nyangi

What I want is for each of these—firststep_main_nyangi~ fourthstep_main_nyangi, etc.
—to be separate top-level skeletons.
In other words, when importing the JSON file, there would be four separate top-level skeletons.

I tried using [skeleton] instead of [bone] in Photoshop, but that caused an error.

Is there a different JSX script that supports this?

Or is there a method I don’t know about?

Of course, I know that creating four separate PSD files would work,
but I’m curious if it’s possible to do this from a single PSD file.

  • Misaki님이 이에 답장했습니다.
    Related Discussions
    ...

    sktmf3 To be precise, rather than one PSD file creating one skeleton, the principle is that one .json file corresponds to one skeleton. In other words, by exporting in four separate exports, it is possible to export data for four skeletons from the same PSD file. Then, import the four exported .json files to create four skeletons.

    Unfortunately, this is not a script issue and cannot be changed. The specification that one .json file corresponds to one skeleton is Spine's fundamental principle.

    • sktmf3 님이 이 게시물을 좋아합니다..

    Thanks for the explanation! The sentence 'one .json file corresponds to one skeleton' made everything perfectly clear to me!"

    • Misaki 님이 이 게시물을 좋아합니다..