/ Forums / Id-Extras Forum / Object Styles and Object Layer Options / Reply To: Object Styles and Object Layer Options


after playing around i made progress….

var myDocument = app.activeDocument;
var docLength = myDocument.pages.length;
var myPages = myDocument.pages

for (var i = 0; i < docLength; i++) { var labelPlaceholder = myDocument.allGraphics; var labelArtwork = labelPlaceholder[0]; var artworkLayers = labelArtwork.graphicLayerOptions.graphicLayers; // artworkLayers.item("Die Copy").currentVisibility = true; // alert(artworkLayers.length) artworkLayers[0].currentVisibility = true; }

this works at communicating with the pdf layers, not i just need to loop through each page and do the same thing to each pdf on each page.