• Bugs
  • Padding offset bug with PhotoshopToSpine.jsx

Hello :hi:

When i'm using the newest version of PhotoshopToSpine.jsx and use the padding feature, when i import the json file, the placement of the slots/attachments appears offset in the Spine editor.

Here's my export settings:

PhotoshopToSpine.jsx adds the padding on the .png files completely fine, but it's the .json code, which are off.
Instead of adding the padding on each side, it adds all the padding on the left and the bottom of the element.

I've attached a screenshot of a coal symbol, where the bug is appearing, just to clearify.

All the coal pieces are seperated .png files, and the blueish coal symbol in the background is a template image, showing where they were supposed to be be positioned.

Any

Specs:
I'm running win10 64bit, Photoshop CC 2017.1.1 Release and Spine version: 3.6.41 Professional, launcher: 3.4.04.

Related Discussions
...
  • Đã chỉnh sửa

Could you send use your PSD files so we can reproduce the issue on our end? You can post them here, or send them via email to contact@esotericsoftware.com.

I've just send you the mail. Thanks for fast response!

btw, sorry for not posting this in the bug channel 😮

This has been fixed on GitHub, thanks! Padding was shifting the position of the images in Spine, which it should not affect.

Thanks, Nate - but unfortunately now the script fails when i try to run it 😢
I tried it out on different .psd files and different locations, and on another computer.

When i run it through Adobe ExtendScript, it simply returns with 3 undefined.

Any idea on whats wrong?

In ExtendScript, please uncheck "Debug > Do not break on guarded exceptions", then run the script and see where it stops. It may stop a few places that are OK before reaching the last place it stops, which is the actual error. But before doing that, please download the script again as we have just made some improvements.


​Sorry about that. Adobe doesn't make writing scripts easy, something that works for one Photoshop version may not work in another. Also, something that works on one PSD may not work on another!

We've updated the script again and it should fix your problem.