Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 142955

Re: Re: Indesign Applescript Placed Object Layer Visibilty Override

$
0
0

sorry for my last answer, I missunderstood.

hope this helps.

 

have fun.

 

 

# here you can list layernames to set visible

setmyLayerNameListto {"Layername 1", "Layername 2"}

 

tellapplication "Adobe InDesign CC"

     settheDocLinkstolinksofactive document

 

     repeatwithiintheDocLinks

          settheGraphicLayerstonameofgraphic layersofgraphic layer optionsofparentofi

 

          repeatwithjfrom 1 tocounttheGraphicLayers

 

               ifitemjoftheGraphicLayersisinmyLayerNameListthen

                    setcurrent visibilityofgraphic layerjofgraphic layer optionsofparentofitotrue

               else

                    setcurrent visibilityofgraphic layerjofgraphic layer optionsofparentofitofalse

               endif

 

          endrepeat

     endrepeat

endtell


Viewing all articles
Browse latest Browse all 142955


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