Skip to main content
Participant
February 10, 2020
Question

Artboard from LayerSet - Photoshop

  • February 10, 2020
  • 2 replies
  • 591 views

Hello,

 

Is there a way to convert a layerSet to an Artboard in jsx? (As you can do it in the layer's menu)

(The final script would be more complicated but i'd like to build it step-by step and avoid to explain too much for now)

 

Thanks a lot,

Bernard

 

{Thread renamed by moderator}

 

This topic has been closed for replies.

2 replies

Legend
February 10, 2020

Equivalent menu command

 

app.runMenuItem(stringIDToTypeID("artboardFromLayerGroupEvent"));

 

b40Author
Participant
February 11, 2020

Thanks r-bin,

it is possible to do it with multiple layerSets in order to convert each one into artboard?

 

Ideally i'd like to make a more complex script...

My purpose is to :

- duplicate my layerSets

- convert them to artboard (transparent background) and keep their names and dimensions (layerSets are in an global Artboard at start)

- export those artboards to png (like in the right click layer menu > quick export to PNG)

 

I think i can search the pshop javascript ref and scripting guide in order to find out but if you can help with few scripts it would be nice.

 

Thank you,

Bernard

 

 

Stephen Marsh
Community Expert
Community Expert
August 26, 2021

A bit late, I just stumbled over this topic while looking for info on layer sets and artboards...

 

Rather than converting layer sets to artboards to export to files, why not directly export the layer sets to files?

 

Layer Saver.jsx

Sahil.Chawla
Adobe Employee
Adobe Employee
February 10, 2020

Hi Bernard,

As you want to expor layers to jsx format, please check this script and let us know if it helps:  davestewart/Export Layers To Files.jsx

Regards,
Sahil

b40Author
Participant
February 11, 2020

Hello Sahil,

this not exactly what i intended to do but thank you anyway, i keep this usefull link 😉

 

Thanks,

Bernard