Skip to main content
garethgoneawol
Inspiring
October 5, 2022
Answered

Script for INDD to uncheck the 'Print Layer' check box in the layer menu

  • October 5, 2022
  • 1 reply
  • 353 views

So I run a basic script below to load 4 layers for when I work on printed designs. I have a layer I call 'Dims' which is short for 'dimentions' and thia is layer I use to place a lot of blocks and notes etc that I use when designing a layout but dont like to see when I preview the page or make a pdf. So i normally double click the DIMS layer and uncheck the 'Print Layer' box BUT is there an edit I can make to my script to do this automatically so I dont need to do it each time I create a document. #lazy

 

- Gareth

This topic has been closed for replies.
Correct answer m1b

Hi @garethgoneawol, try this.

app.activeDocument.layers.add ({name: 'Dims', layerColor: UIColors.yellow, printable: false});

You can find other properties of Layer here

- Mark

1 reply

garethgoneawol
Inspiring
October 5, 2022

Here's the script

 

#target indesign app.activeDocument.layers.add ({name: 'Images', layerColor: UIColors.magenta});
app.activeDocument.layers.add ({name: 'Copy', layerColor: UIColors.lightBlue}); app.activeDocument.layers.add ({name: 'Brand', layerColor: UIColors.red}); app.activeDocument.layers.add ({name: 'Dims', layerColor: UIColors.yellow}); app.activeDocument.layers.item('Layer 1').remove();

 

m1b
Community Expert
m1bCommunity ExpertCorrect answer
Community Expert
October 5, 2022

Hi @garethgoneawol, try this.

app.activeDocument.layers.add ({name: 'Dims', layerColor: UIColors.yellow, printable: false});

You can find other properties of Layer here

- Mark

garethgoneawol
Inspiring
October 5, 2022

Awesome, thank you