Skip to main content
Participant
February 1, 2023
Question

Setting Up Layers in Indesign

  • February 1, 2023
  • 1 reply
  • 140 views

I prefer to set up my working files with named layers ("background", "text", "images", "Page Numbers") - is there a way to copy or load saved layer names for multiple files? Instead of in each new file, making new layers + naming them individually, can I load saved layer names (kind of like loading a swatch library)?

This topic has been closed for replies.

1 reply

rob day
Community Expert
Community Expert
February 1, 2023

Layers could be included in a template. I use a script, you can edit the first line as needed:

 

var a = ["Background", "Text", "Images", "Page Numbers"]

for (var x in a) {
    makeLayer(app.activeDocument, a[x])
}

/**
* Makes a new named Layer 
* @ param the document to add the layer 
* @ param layer name 
* @ return the new layer 
*/

function makeLayer(d, n){
    if (d.layers.itemByName(n).isValid) {
        return d.layers.itemByName(n);
    } else {
        return d.layers.add({name:n});
    }
}