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

#6404
Wonderboy

so far i’ve been trying to mess around with this

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

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

i keep getting Object is Invalid on the currentVisability line