• Editor
  • Pivot points in Frame Atlas

Hello!
Is there any way of telling where the pivot point (origo) of each frame is in the exported frame atlas? The atlas.txt file seems to lack this information.

Thanks!

Related Discussions
...

The atlas only specifies where in an atlas page a specific is located, including information about if white space was stripped, and whether the image was rotated.

The information you want is stored in skins, see Spine: JSON export format: Skins. A skin defines attachments orientation/position relative to the bone its slot is associated with.

Hi, and thanks for the reply.
What I'm looking for is the pivot of a flat rendered frame. I'm not using skins or a boned character. Can this data be found if I somehow use the skins feature to export the flat frame atlases?

You can see the problem I'm trying to solve here:

Ah, sorry, I didn't think you are using the frame sequence export. In that case, the answer is: no, the atlas data doesn't store any pivot information. But you can setup a fixed pivot as follows:

  1. Add a transparent background image that will bound the skeleton, so no part of the skeleton ever goes out of that background images bounds.
  2. Record the position of the origin relative to the background image
  3. Export to sequence including the background image

This way, all exported frames have the same size, and the pivot is a fixed point in each frame.

Ok, thanks for the info. I'll try it this way.

But this method also creates alot of unnecessary space in the Atlas image. The pivot data is quite essential information when working in Unity, and seems like it wouldnt require much work to add the option to export that info in to the atlas txt-file. Is this something that you could add in a future update to the frame sheet export in Spine?

Thanks!