Yes, there is an alternate way to define the position origin for a PSD meant for Spine. In Spine 4.2.10-beta and later, you can use the first X and Y guides in the PSD to define the world origin in Spine. This method ensures that the origin remains consistent even if the PSD is edited in different applications. However, not all software that exports in PSD format stores guides in the file.
To address this, Spine has an [origin]
tag. This tag allows you to set the world origin in Spine using the center of a layer with [origin]
in its name. This method is more resilient against changes in crop/canvas size and swapping between applications. You can simply draw an X or any mark on a layer named [origin]
, and the center of that marker will be used as the origin.
For example, you can name a layer [origin]
and draw a vertical line 5 pixels tall and another 5 pixels wide centered on the first. The intersection of these lines will be the origin. This approach is easier to hide and less dependent on the software's ability to save guides.
Here is a summary of the methods:
- Using Guides: Set the first X and Y guides in the PSD to define the origin.
- Using
[origin]
Tag: Name a layer [origin]
and place a marker (e.g., an X) to define the origin.
These methods ensure that the origin remains consistent and are resilient against changes in the PSD file.