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

#6406

got it working…

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

for (var i = 0; i < docLength; i++) { var labelPlaceholder = myPages[i].allGraphics; var labelArtwork = labelPlaceholder[0]; var artworkLayers = labelArtwork.graphicLayerOptions.graphicLayers; artworkLayers[0].currentVisibility = true; }