0
How to set a layer invisible?
New Here
,
/t5/illustrator-discussions/how-to-set-a-layer-invisible/td-p/1161899
Dec 11, 2008
Dec 11, 2008
Copy link to clipboard
Copied
Hi guys,
Can you tell me how to set a layer invisible? Thanks.
Can you tell me how to set a layer invisible? Thanks.
TOPICS
Scripting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Explore related tutorials & articles
Community Expert
,
/t5/illustrator-discussions/how-to-set-a-layer-invisible/m-p/1161900#M237770
Dec 11, 2008
Dec 11, 2008
Copy link to clipboard
Copied
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
---------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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
LATEST
/t5/illustrator-discussions/how-to-set-a-layer-invisible/m-p/1161901#M237771
Mar 24, 2009
Mar 24, 2009
Copy link to clipboard
Copied
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 />}
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

