🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #2080

Re: reading layers

#2080
From: Douglas_P_Hill
Date: Tue, 22 Jun 2004 18:59
15 lines
1040 bytes
I don't have photoshop in front of me to test this, but try opening a file containing layers and running this script:

var oDoc = activeDocument
var numLayers = oDoc.layers.length
var ind
for(ind=0; ind<numLayers; ++ind)

{
  var lname = oDoc.layers[ind].name

alert("Layer " + ind + " is " + lname)

}

Please excuse the odd spacing -- I haven't figured out how to format nicely yet.
Technical Details
Message-ID: <3bb4b475.3@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.agarik.com!news.agarik.com!npeer.de.kpn-eurorings.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <3bb4b475.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5839,8d4d2d6e7a292fe4
X-Google-Attributes: gidf5839,public
From: Douglas_P_Hill@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.agarik.com!news.agarik.com!npeer.de.kpn-eurorings.net!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.photoshop.scripting
Subject: Re: reading layers
Message-ID: <3bb4b475.3@webx.la2eafNXanI>
Date: Tue, 22 Jun 2004 11:59:05 -0700
References: <3bb4b475.-1@webx.la2eafNXanI>
Lines: 11
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit