hey,
we've just been exporting some assets from Photoshop to Spine v3.5.18 using LayersToPNG.jsx and noticed that using padding > 0 results in sprites being misaligned in Spine by the amount of padding used. It doesn't matter whether 'Use ruler origin as 0,0' is enabled or not.
It looks like padding is not being taken into account when calculating the x,y offsets for each sprite/attachment during export. We've quickly patched the script to fix things for our workflow. It has not been fully tested and might be slightly wrong but I've attached it for reference. The padding changes are lines 179-180.
x += Math.round(width) / 2 - padding;
y += Math.round(height) / 2 - padding;
Our script also has a quick hack to allow the saving of images into a subfolder. The exported attachments are updated to reference images from the subfolder which means we can more easily combine images from multiple psd/Spine files using the texture packer, nb. this is currently untested for skin exports using 'Use groups as skins' and is basically a quick fix for us at the moment.
cheers,
// greg