Hi,
I am using the latest version of the PhotoshopToSpine.jsx script(v 2.9), and I am a little bit surprised by the way it exports Smart Objects. Let's assume we got the following layers in Photoshop:
[slot]MySlot
pic
[slot]MySlot2
pic
MySlot/MySlot2 are groups and both instances of pic are smart objects. If I export this all goes well, two slots are created and each of them contain an attachment called pic( both of them pointing to the pic.png that is generated )
...however...
if I decide to apply a transformation to MySlot2/pic( e.g. change the scale of it to 200% ) and I export, then I see that the scaling has been applied to both MySlot/pic and MySlot2/pic!!!!! I think this is because the export process goes like this:
1)MySlot/pic is rasterized to pic.png ( 1x scale )
2)MySlot2/pic is ratsterized to pic.png( 2x scale ) -> this "smashes" the pic.png generated in 1)
This behaviour is wrong...Technically a Smart Object keeps a reference to the original image as well as all the transforms being made to it so in theory the export process could be done like this:
1)MySlot/pic is rasterized to pic.png ( 1x scale )
2)MySlot2/pic is ratsterized to pic.png( 1x scale ) -> this "smashes" the pic.png generated in 1) but that's ok since both Smart Objects should point to the original 1x scale image
3)Create slot "MySlot" with an attachment "pic" whose scale is 1.0
4)Create slot "MySlot2" with an attachment "pic" whose scale is 2.0
Likewise, when I create a group as a bone( e.g. [bone]MyBone ) and I apply transformations to it, they propagate to the pic being rasterized instead of being applied to the generated bone
Could someone please provide a solution to this problem?( either a fix in the script or maybe a workaround??? ). I am using Photoshop heavily to layout the GUI of my game
and I would happily do it directly in Spine instead of Photoshop but unfortunately Spine has got no alignment tools π
Cheers,