• Editor
  • Issue with Cropping in PhotoshopToSpine Script.关于PhotoshopToSpine脚本的裁切问题

The content in Chinese and English is the same to facilitate everyone's search.

Hello,

I have been using version 4.8 of the PhotoshopToSpine script without any issues. However, after updating to the latest version 7.4 from GitHub, I've encountered some problems. In both versions 4.8 and 7.4, the script is supposed to trim parts that go beyond the PSD canvas when exporting images by default. In practice, only version 4.8 successfully trims the excess, while version 7.4 doesn't perform this action. I checked the script for version 7.4 and noticed that revealAll is set to false by default.

I have also tested this with both Photoshop 2018 and 2024 versions, and the issue persists. I hope this problem can be resolved. Thank you!

你好,

我之前一直使用的是PhotoshopToSpine的4.8版本,最近更新使用了github上的新版本——7.4,出现了一些问题。不论是4.8还是7.4,导出图片时,脚本都是默认按照将超出PSD画布的部分给裁剪掉的。但在实际使用中,只有4.8的版本是确实地裁剪掉了超出部分,而7.4版本并没有这样执行。我打开过7.4的脚本看过,revealAll是保持默认的false的。

我也分别使用了ps2018和2024两个版本测试,问题依旧。希望能解决这个问题,感谢!

Related Discussions
...

Hello,

It seems that the issue you're experiencing with the PhotoshopToSpine script version 7.4 not trimming the excess parts of the PSD canvas might be related to changes in the script's behavior or settings. In previous discussions, it was noted that different versions of the script might behave differently due to updates or changes in Photoshop versions. Since you've confirmed that the revealAll setting is set to false, which should ideally trim the excess, it might be a bug or an unintended change in the script. You could try downloading the script again to ensure it's not corrupted, or consider reverting to version 4.8 if it meets your needs. Additionally, you might want to report this issue on the GitHub repository or check if there are any updates or fixes available.

你好,

您在使用PhotoshopToSpine脚本7.4版本时遇到的问题,可能与脚本行为或设置的更改有关。在之前的讨论中提到,不同版本的脚本可能由于更新或Photoshop版本的变化而表现不同。您已经确认revealAll设置为false,这应该会裁剪多余部分,这可能是脚本中的一个错误或非预期的更改。您可以尝试重新下载脚本以确保其未损坏,或者如果4.8版本满足您的需求,可以考虑恢复使用。此外,您可能需要在GitHub仓库上报告此问题,或查看是否有可用的更新或修复。

    Spinebot
    I am indeed using version 4.8 now. I just tried downloading version 7.4 again, but the result is still the same. However, I haven't given feedback on GitHub because I don't have a GitHub account. I'll need your help with that.Thank you!

      akumafactory Sorry that Spinebot's answer was not helpful.
      By the way, this forum has a translate button, so you are welcome to post in your native language.

      As a matter of fact, we just recently became aware of this problem. However, since Spine 4.2 allows PSD import directly into the editor, we are not currently making any updates to PhotoshopToSpine.jsx, and conversely, we know that some users are using the current behavior as the correct one, so we are still considering whether or not to fix it.
      For your information, if you perform a PSD import in Spine 4.2, the out-of-canvas areas will be cropped. If you are using Spine 4.2, please take advantage of the new PSD import feature.

      In any case, we will continue to consider how this issue should be handled.

        Misaki
        Thank you for your response. I'm aware of the auto-translate feature, but it seems that when searching, it's not possible to retrieve all relevant content using one language? So, I used bilingual text to facilitate my compatriots in searching for related content in their native language. But it's okay, it's not a particularly important issue~ Thanks for the reminder~

        I understand the reason for not fixing it temporarily. If no option is added to the interface, many people wouldn't know to open the script to modify the value of revealAll. They acquire the script in different ways, and may not all see the usage instructions. Moreover, importing PSDs directly is very convenient. However, in practical use, I might use multiple folders within a single PSD and use [folder] to export materials from different folders. In this case, I can't directly drag the PSD in. But now I can use 7.4 to help retain parts outside the canvas, or use 4.8 to help crop the parts outside the canvas. It's no big deal, and I hope this can help friends who encounter the same issue.