TeT

Hello. I've got animation with complicated rig. Now I need to rotate some sprites for save place in atlas. So I want to edit mesh and i need to copy weights from another mesh. How can I do this?
У вас нет необходимых прав для просмотра вложений в этом сообщении.
TeT
  • Сообщения: 17

Erikari

Hello TeT!
You cannot copy the weight values from one mesh to another.
You can duplicate the mesh and possibly readjust it manually to achieve this.

Two suggestions:
You can now pack your meshes with Polygonal texture packing to automatically save space where possible without having to rotate textures manually. Texture Packing - Spine User Guide: Output
Blog: Spine 3.8 released: Polygonal texture packing


You likely can achieve the same bending results with fewer vertices. Try to cut the number down a little, this will make the mesh more manageable and improve performance too.
Аватара пользователя
Erikari

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

TeT

Erikari писал(а):Hello TeT!
Thank you, but I cant use Polygonal Atlas in this project. What is undeformed mode and how I can turn it on?
TeT
  • Сообщения: 17

Erikari


You can view your mesh not deformed by bones by unchecking Deformed in Edit mesh mode.
Meshes - Spine User Guide: Deformed

Unfortunately, I just tested it, and you cannot rotate the vertices, only translate them to a new position.

What you can do is manually reposition each vertex instead (with Deformed checked so it doesn't wreck the mesh)
Therefore, I think your best bet is this:
1. rotate the new mesh (which could be a copy of the old one with the new artwork inside it) so it matches very precisely the old mesh
2. select one or more vertices from the old mesh and press CTRL+C in world axis
3. select the corresponding vertices in new mesh (in the same order if you're copying the same ones) and press CTRL+V

This should be reasonably fast and painless to do, but still, a hassle if you have many vertices. At least this way you shouldn't need to redo manually the weights :>
Аватара пользователя
Erikari

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

TeT

I tried to copy vertex positions but result wasnnt I want. I think, I can paste weights in JSON file, but I cant found informations about weights in JSON.
TeT
  • Сообщения: 17


Вернуться в Editor