Jen

Hello,

I've created a walk animation for a character, and am now trying to set up skins so I can re-use the animation for another character. I created a skin for each, added all of the attachments to it (By selecting all the attachments, clicking New... Skin Placeholder. I ticked "Duplicate attachment for each skin".) and dragged the second character's images into the correct slots. Each of the images is a slightly different size/shape to the original character.. so e.g. character 1's torso is a bit thinner than character 2's, so for each mesh, I've clicked “Unlink this mesh from the source mesh” and edited the mesh.

This all works fine, but I've noticed that the sizes of the second character are wrong - it's like the scale of each of the second character's images has been altered to fit into the original version of that image. The x and y axes are scaled differently.

E.g. character 1 is thinner than character 2. When I add character 2's torso to the attachment slot, it is now noticeably squashed in the x direction. To make it look roughly right, I need to scale character 2's torso to about 1.1 (in the x direction).

I don't really want to try to tweak the scale for every body part and for every future character I add a skin for.. is there something I've missed/a better way of doing this?

Thanks,
Jen
Jen
  • Сообщения: 2

Erikari

Hi Jen!
Linked meshes are meant to be used only when the two images sizes and proportions match, so they would not be a good fit for your case.
Instead of reusing the same mesh and then trying to fix it, I think it's better to make a new mesh from scratch if a mesh is necessary.
Therefore don't duplicate the attachments for each skin, or do so and keep only the ones that actually match but make sure to remove the others.

If you're using Photoshop to export new skins, you can import new skins automatically in the correct slots and placed just like in your PSD using the new PhotoshopToSpine script and Import settings. This will work as long as you keep the same slot names in the PSD file, and if the names of the layers are also the same but in a different skin, they'll also be placed in the same skin placeholders.
spine-scripts/photoshop at master · EsotericSoftware/spine-scripts
Import - Spine User Guide: Data

I hope this helps! :D I really love the new script and import settings, they've been a lifesaver, hopefully, they'll ease your work as well!
Аватара пользователя
Erikari

Erikari
  • Сообщения: 2018

Jen

Hello,

Thanks for your reply. - I was afraid that was the answer! The reason I'm using the same mesh and then fixing it is so that I can re-use the weights and the animations of the first character - if I make a new mesh, I didn't think that either of these would be possible... would it?

I should add that I am not an animator and re-doing the weights and/or animations from scratch is beyond my current skill set (someone else did the initial animations) - is there another way around this?

Thanks,
Jen
Jen
  • Сообщения: 2

Erikari

Sorry to hear that, then perhaps you may try to go around that by making sure the new images have exactly the same size and fit within the old ones. Not a perfect solution, but if you can't make new meshes or have access to someone who can do that for you, that's likely the easiest way.
Аватара пользователя
Erikari

Erikari
  • Сообщения: 2018


Вернуться в Editor