LeonNeol

I have my setup like this.
Capture.PNG


When I made it I expected the slot name to be R-hand/finger 1/1 and R-hand/finger 2/1 and so on. The written JSON files only uses "1" for the slot name so as a result they got overwritten. Can the script be updated to support parent name (possibly via [folder] tag?)
이 게시글에 첨부된 파일을 보기위한 권한을 요청할 수 없습니다.
LeonNeol
  • 전체글: 12

Erika

Hello,

The slot name is the name you specify after the [slot] tag and it won't take into account the folder path.
It should be noted that attachment name and slot name are two different things, and what you seem to be expecting is for attachment paths to be applied to slots.

Slot names don't usually have subfolder paths in them, if you look at the example projects that come with Spine, you'll notice no slot has a subfolder path. The image attachments inside them, however, do.

As slots exist to provide a flexible draw order in the draw order node, you'll end up seeing them listed there, therefore you likely may want to use unique names for the parts rather than numbers.

Here's links in case you'd like to know more:

Slots - Spine User Guide
Images - Spine User Guide
Attachments - Spine User Guide
Regions attachments - Spine User Guide
사용자 아바타
Erika

Erikari
  • 전체글: 2980


다시 돌아감: Editor