Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

list images for a visible layers only

$
0
0

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


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>