• Editor
  • Change the scale of a character inside Spine

Hi,

I am trying to put multiple skeletons with animations in a single Spine file and work on the file. One thing I am having trouble with is changing the size of different skeletons. They were in different Spine files (projects). Some are a lot bigger than others in size.

In order to make them work in the right size in one scene, what I did was to import project in one Spine file and scale all the bones of one skeleton to the right size. And repeat that for all Skeletons ( projects). I wouldnt be able to do that because some bones don't inherit scale and some have IK. I have to resize and adjust them individually in order to scale all the skeletons to the right size.

Are there any ways to resize ( scale) more efficiently when I need to import multiple projects in one single Spine file and work on them?

Thank you!

Related Discussions
...

You can export a project to JSON then use Import Data to bring it back into Spine. On the Import Data dialog, you can set a scale that will affect your entire skeleton:
Import - Spine User Guide: Scale

This way of scaling won't have any issues with transform inheritance being disabled and you won't need to scale the root bone to adjust your skeleton sizes.

We should add a scale slider on the Import Project dialog so you don't need to export to JSON.

Nate a écrit

We should add a scale slider on the Import Project dialog so you don't need to export to JSON.

Yes, that would be nice. Save yourself from performing an extra step.

Nate a écrit

You can export a project to JSON then use Import Data to bring it back into Spine

I tried to export from original project and import to the new project with scale, but there are still a few images that remain the original size.
Is there anything I need to check before exporting from the original project?

Thanks Nate!

No, that should do it. Are you sure those images have been resized on disk to match the scaled skeleton?

Do you mean I need to resize the images after export the JSON?
When importing to the new project, most images match the scale I entered in the box. Only a few images don't scale to the right size. Meaning I only need to resize those few images that don't scale?

Spine never modifies your image files. That would be surprising, it's better you fully control your image files.

When you scale your project, it scales everything in each skeleton that has a size: bones, meshes, etc. However, region attachments are sized based on their image file size. If you resized your skeleton but didn't resize your images, your region attachments will still appear the old size.

The reason some attachment appear the right size is that mesh attachments aren't based on the image file size. Each mesh vertex has a position and the vertices determine how the mesh image is deformed. Scaling the skeleton scales the mesh vertices, so the size will match the rest of the scaled skeleton. The image the mesh uses is the same, which may be larger or smaller than the mesh vertices.

Generally you should resize ALL your images to match the scaled skeleton. There are some instances where it can make sense to use different sized images, but it's somewhat rare. For example, a large explosion might use a lower resolution image that is stretched very large.