Apply background to different products based on the Layers
Hi,
In the InDesign document, I created two layers. With the help of the two layers, I need to apply the background colors for the different products in the InDesign document. Here is the code I used to apply the background color to the products. Could you please guide me on how to apply background colors to the document using layers?
//The active document:
var myDoc = app.activeDocument;
//The layers collection of the active document:
var myLayers = myDoc.layers;
//Loop through the layers collection of the active document:
for(var i = 0; i < myLayers.length; i++)
{
alert( myLayers[i].name );
app.documents[0].layers[0].layerColor = UIColors.PURPLE;
};
