Highlighted

How about if you had the option to duplicate a layer on all artboards at once?

New Here ,
Nov 04, 2020

Copy link to clipboard

Copied

How about if you had the option to duplicate a layer on all artboards at once?

It would be great for the designs.Screenshot_5.png
TOPICS
Download and install, FAQ, Feature request, How to, Mac, Performance

Views

30

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How about if you had the option to duplicate a layer on all artboards at once?

New Here ,
Nov 04, 2020

Copy link to clipboard

Copied

How about if you had the option to duplicate a layer on all artboards at once?

It would be great for the designs.Screenshot_5.png
TOPICS
Download and install, FAQ, Feature request, How to, Mac, Performance

Views

31

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 04, 2020 0
Adobe Community Professional ,
Nov 05, 2020

Copy link to clipboard

Copied

There is a script for that:

 

https://stackoverflow.com/questions/57050942/duplicate-layers-in-multiple-artboards-photoshop-2019

 

I made a quick edit to the script to use the active layer as the original script assumed a single layer only... I have not put it through exhaustive testing so I'm not sure if my hack is bullet-proof or not:

 

 

var doc = app.activeDocument;

// assumes your bottom most artboard in the layer tree contains the layer you want to copy from AKA Artboard 1
var artBoardToCopyFrom = doc.layerSets[doc.layerSets.length - 1];

/*
// assumes there is only 1 layer in this artboard that we need to target
var layerToCopy = artBoardToCopyFrom.layers[0];
*/
var layerToCopy = app.activeDocument.activeLayer;

// set that layer as the active layer
doc.activeLayer = layerToCopy;

// select all 
doc.selection.selectAll();

// copy the selection
doc.selection.copy();


// loop through each layerSet aka artboard except the last one -- no need to paste an additional copy into the bottom most layerSet
for (var g = 0; g < doc.layerSets.length - 1; g++) {

    // set layer 0 in this group as the active layer -- again assumes there is only one layer in each artboard
    doc.activeLayer = doc.layerSets[g].artLayers[0];

        // select all
    doc.selection.selectAll();

    // paste into selection aka create new layer and paste with mask
    doc.paste(true);
}

 

 

Depending on artboard properties and layers in each artboard, layer positioning and layer stack order may or may not be correct.

 

https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 05, 2020 0