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

Re: Grab graphic layer option by item name

$
0
0

Hi,

 

name in layers palette is always a reference to a page item.

Assuming only one image / graphic in it you can access it by

 

var test =  app.activeDocument.pageItems.itemByName("Bee").graphics[0];


Viewing all articles
Browse latest Browse all 37788


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