• Bugs
  • Layers to PNG error

Related Discussions
...

When I want to run this script, a dialogue for saving the psd files comes up, and when I cancel I get this error telling me an unexpected error occurred, to debug run the script using blah blah blah. I have had this happened for two PSD files lately.

Hm, could you provide us with the PSD's as well as the Photoshop version you are using? You can send the PSDs to contact@esotericsoftware.com.

Also, which version of the script (where did you get it from)?

I've seen this before when using styles in Illustrator, it can't export them correctly and it chokes when trying to process all of layers.

@Xelnath this could be it yes. Maybe linked layers.

@aiat_gamer please try merging layers that are not rasterised or otherwise different from a normal layer. We can maybe improve the script to do this automatically.

badlogic wrote

Hm, could you provide us with the PSD's as well as the Photoshop version you are using? You can send the PSDs to contact@esotericsoftware.com.

Sent.


Shiu wrote

@[obrisani korisnik] this could be it yes. Maybe linked layers.

@aiat_gamer please try merging layers that are not rasterised or otherwise different from a normal layer. We can maybe improve the script to do this automatically.

Hmmm, all I can see is just normal layers in the PSD file I got. The rasterize option in the layer sub-,menu is geryed out.
I sent the PSD file I got to you guys to take a look.

@aiat_gamer the reason the script fails is because you're using CMYK mode.Please go to Image > Mode and change it to RGB. When a dialog pops up make sure you do not flatten the layers. The script should work after change to RGB mode.
I hope it helps! 🙂

Shiu wrote

@[obrisani korisnik] the reason the script fails is because you're using CMYK mode.Please go to Image > Mode and change it to RGB. When a dialog pops up make sure you do not flatten the layers. The script should work after change to RGB mode.
I hope it helps! 🙂

That did it, thank you do much.

Cool! Glad to hear it 🙂