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


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

    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