• Editor
  • Linking Meshes in 2 Different Skin Placeholders

Related Discussions
...

Hey all,
I am having trouble getting 2 meshes in 2 different skin placeholders to become linked to each other. I have tried Googling/watching the Spine video on linked meshes, but I am still having issues. I would appreciate it if someone could help me figure out to do this correctly. Thank you!

Note: I am creating this project by using the “Photoshop to Spine” script and am willing to relabel parts of my Photoshop project if it is necessary for the solution.

Structure I am Focusing on for this Issue:

Photoshop Structure:

[Skin: Woman1]
—Head_WithALeftShadow [bone:Head] [slot:Head] [merge]
—Head_WithARightShadow [bone:Head] [slot:Head] [merge]
etc.
[Skin: Man1]
—Head_WithALeftShadow [bone:Head] [slot:Head] [merge]
—Head_WithARightShadow [bone:Head] [slot:Head] [merge]
etc.

Spine Structure:
[Slot: Head]
— [Skin Placeholder: Head_WithALeftShadow]
—— [Mesh: Woman1/Head_WithALeftShadow]
— [Skin Placeholder: Head_WithARightShadow]
—— [Mesh: Woman1/Head_WithARightShadow]

I want to link the 2 images together (WithALeftShadow and WithARightShadow) as linked meshes. The problem is that when I try to create a linked mesh for one image, it will create a brand new linked mesh rather than allow me to make the linked mesh the other image.
Note: Each Man1 head is the same size. Each Woman1 head is the same size. Man1's head is larger than Woman1's head. However, their eyes/nose/mouth line up, which is why I have not been using facial constraints).

Potential (Failed) Solution:
1) I manually recreated the structure below by creating a linked mesh from [Mesh: FemaleTemplate/Head_WithALeftShadow], creating a skin placeholder, and then dragging the linked mesh into it.

— [Skin Placeholder: Head_WithARightShadow-ManuallyMade]
—— [Mesh: Woman1/Head_WithARightShadow]

2) I switched to the other skin, and then added [Mesh: Man1/Head_RightShadow] to [Skin Placeholder: Head_WithARightShadow-ManuallyMade]
3) The problem: The head sizes for each character are different sizes. When I switch between skins, when [Skin Placeholder: Head_WithARightShadow-ManuallyMade] is set to visible, [Mesh: Woman1/Head_WithARightShadow] remains the same size. Thus, Man1’s head has a normal size but Woman1’s head looks way larger than it should. (This wasn’t an issue when the Skin Placeholders were generated automatically by the “Photoshop to Spine” script.)

So in summary, how could I directly link 2 existing meshes, or, if that is not possible, what is the best way to take advantage of the “Photoshop to Spine” script so I do not have to resize the head after the script runs nor use Skin Constraints? I did not have to use Skin Constraints before this issue, so hopefully, I will be able to continue without using them.

Thanks for your help!

Hello!

MonsterMaker534 a écrit

The problem is that when I try to create a linked mesh for one image, it will create a brand new linked mesh rather than allow me to make the linked mesh the other image.

This is normal. What you need to do is simply change the path of the linked mesh to point to the other image, then it will be set and ready to use!

MonsterMaker534 a écrit

Each Man1 head is the same size. Each Woman1 head is the same size. Man1's head is larger than Woman1's head.

This means you can use linked meshes to link the woman heads together, and another set of linked meshes to link the man heads together. But just like normal meshes, to be able to reuse them, they need to have the same size and proportions, otherwise they won't work properly.

Meshes - Spine User Guide: Linked meshes
Meshes - Spine User Guide: Image resize

If you want to have both the woman and man meshes reuse the same mesh, they will need to have a matching starting dimension. As you mentioned, maybe using skin constraints to resize a set may help, but I think it may be just simpler to have two separate sets of meshes.

Hi Erika,
Thank you for your answer/help.

That makes sense regarding creating linked meshes.

Thankfully, I did not have to deal with image resizing. I redid my "Potential Failed Solution" steps in my prompt above, and got it to work. Turns out, the cause of my problem was that I must have accidentally resized one of the meshes in one of the skin placeholders.

Thank you for pointing out that I can't reuse a pair of linked meshes every time I create a new skin (specifically, when I want meshes linked to other meshes in the same skin). I will create a new pair of linked meshes manually for the head every time I import a new skin from Photoshop.

Thank you again for your help and explanation regarding linked meshes!