Skip to main content
Participant
July 12, 2021
Question

'Export layers to files' is not working with artboards. Any suggestions?

  • July 12, 2021
  • 3 replies
  • 662 views

Hello,

In the paste I've made extensive use of the 'Export Layers to files' script. It works well, and saves a lot of time.

 

But I am now trying to use on a PSD file that has two artboards.

 

I have hidden Artboard 1. I have made visible the layers I wish to export from Artboard 2. The issue is the when I do the export, it is creating images that are not in the dimensions of Artboard 2, but instead in the dimensions of the total area of Artboard 1 and 2. I am guessing this is because when the Artboard feature is in use, the underlying canvas dimensions are actually the total area taken by both artboards, and the space between them, etc. And I am guessing the script is not set up to handle this. It seems it doesn't diferentiate between the underlying canvas size and the artboard dimensions.

 

I've done a number of searches online, and was not able to find any information addressing this issue. Which was surprising, as I would have thought a lot of users of that script would be affected by this.

 

Is there any way to achieve something similar to 'Export Layers to Files' when using artboards?


Thanks very much,

 

James

This topic has been closed for replies.

3 replies

Participant
September 23, 2024

Hello, I have found a workaround, you can right click artboard in layers window and duplicate artboard to new compositions and then export layers to files. You have to do it for every single artboard but I found it still faster then export 10+ layers by one.

Mohit Goyal
Community Manager
Community Manager
September 23, 2024

Thank you for sharing the workaround with all of us here. Much appreciated!

 

Thanks,
^MG

Stephen Marsh
Community Expert
Community Expert
July 12, 2021

You should probably try the File menu > Artboards to Files... script or another script specifically created to work with artboards.

 

 

Participant
July 12, 2021

@Stephen Marsh Thanks. I had tried that, but I wasn't able to get it to do anything more than export the top most visible layer in each artboard (or in the one artboard I was trying to export from).

Unfortunately I know nothing about the scripting language Photoshop uses, so I'm not in a position to start modifying scripts.

c.pfaffenbichler
Community Expert
Community Expert
July 12, 2021

»Unfortunately I know nothing about the scripting language Photoshop uses«

It’s JavaScript, apparently a fairly old version, though. 

 

If you need help you can start a new thread and ask for it or if you want to pay for a custom solution you could try over on Photoshop Scripting Services for example.

c.pfaffenbichler
Community Expert
Community Expert
July 12, 2021

The Script states »Copyright 2007«, so Photoshop Artboards didn’t even exist when it was created. 

You can try to amend the Script or create a new one altogether to meet your needs.