Copy link to clipboard
Copied
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}
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Hello Sahil,
this not exactly what i intended to do but thank you anyway, i keep this usefull link 😉
Thanks,
Bernard
Copy link to clipboard
Copied
Equivalent menu command
app.runMenuItem(stringIDToTypeID("artboardFromLayerGroupEvent"));
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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?