Article View: adobe.photoshop.scripting
Article #417Re: Script to check for presence of a layer mask
From: Paul_R
Date: Fri, 23 Jan 2009 21:32
Date: Fri, 23 Jan 2009 21:32
11 lines
842 bytes
842 bytes
if you know it is in a layerset you could use:-
activeDocument.activeLayer = activeDocument.layerSets["LayerSetName"].artLayers.getByName ("LayerName");
Otherwise as Mark has said you would have to traverse each set.
Technical Details
Message-ID:
<59b7a3d8.3@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b7a3d8.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,da4af0c0c71df769 X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Paul_R@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: Re: Script to check for presence of a layer mask Message-ID: <59b7a3d8.3@webcrossing.la2eafNXanI> Date: Fri, 23 Jan 2009 13:32:25 -0800 References: <59b7a3d8.-1@webcrossing.la2eafNXanI> Lines: 8 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit