Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to set a layer invisible?

New Here ,
Dec 11, 2008 Dec 11, 2008
Hi guys,

Can you tell me how to set a layer invisible? Thanks.
TOPICS
Scripting
875
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Dec 11, 2008 Dec 11, 2008
Here's a sample
---------begin
tell application "Adobe Illustrator"
set myLayer to every layer of current document whose name is yourName --(the name of the layer you want invisible)

set visible of myLayer to false

end repeat

end tell
---------end
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 24, 2009 Mar 24, 2009
LATEST
function hideAllLayers()<br />{<br /> forEach(document.layers, function(layer) {<br /> layer.visible = false;<br /> });<br />}<br /><br />function showAllLayers()<br />{<br /> forEach(document.layers, function(layer) {<br /> layer.visible = true;<br /> }); <br />}<br /><br />function forEach(collection, fn)<br />{<br /> var n = collection.length;<br /> for(var i=0; i<n; ++i)<br /> {<br /> fn(collection);<br /> }<br />}
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines