Hi,
I need images name for the layers visible is "true "only.
i.e., document contains 10 images, but the conditions is (layers visible = true) then document images is 7.
Trying Code:
var myDoc = app.activeDocument
var myGraphics = app.activeDocument.allGraphics
alert("docMyGraphics " + myGraphics.length)
var myLayer = app.activeDocument.layers.everyItem().getElements() for(k=0; k<myLayer.length; k++){ if(myLayer[k].visible == true) { for(i=0; i<myGraphics.length; i++) { alert(myGraphics[i].itemLink.name) } } }
Could anyone rewrite my code and give solution.
Plz it is very urgent.....
Thanks
Beginner