In my approach, create a new skeleton by importing the new JSON file which is exported from Photoshop via Import Data
, then move the attachment to the existing skeleton from the new skeleton, copy the transform of the moved attachment, and paste it to the existing attachment in Setup mode. If you reposition attachments in this way in setup mode, there is no need to modify your animations. To be clear about this workflow, I have prepared a screen recording that demonstrates it.
The steps demonstrated in this video are as follows:
- Modify the mouth image already placed on the Spine editor in Photoshop and re-export it using PhotoshopToSpine.
2.Import the JSON file created by PhotoshopToSpine as an additional skeleton via Import Data
.
- Move only the mouth slot and attachment from the added skeleton to the existing skeleton.
- Select the moved mouth attachment and press
Ctrl+C
to copy the transform, select the existing mouth attachment and press Ctrl+V
to paste and reposition it.
Perhaps there is a better way to do it, but at least I often follow this procedure. I hope this will help you.
Let me add something additional. You can use the Replace
option to replace an existing attachment, but if you have not used the [skin] tag in your psd to assign the attachment to the appropriate skin, the skin placeholder will be removed after replacing, so this is the reason why I did the way in the video.
If the tag settings in the PSD correctly match the skin and the slot it is set to in Spine, the animation will be retained even if it is replaced using the Replace
option.