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

Grab graphic layer option by item name

$
0
0

Hello,

I can easily acess a graphic's layer option by using the following:

 

var doc = app.activeDocument.allGraphics;

doc[0].graphicLayerOptions.graphicLayers.itemByName( "Orange").currentVisibility = true;

 

Instead of "doc[0]", I would like to grab the graphic by the name/label it has as a item in the layers menu: "Bee".

 

var test =  app.activeDocument.pageItems.item("Bee");

 

I get confused, as one is a pageItem and the other a graphic and I'm not good enough in scipting to understand the whole hirachy.

 

Can someone help?

 

Thanks alot,

Kosta


Viewing all articles
Browse latest Browse all 37788

Trending Articles



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