I have a Photoshop PSD document which has a layerset named “Flags“. “Flags” has a sub-layerset called “LEFT-Flags“ which itself contains artlayers, each with a national flag image. The number of these artlayers is currently around 40 – but will increase over time.
As an ExtendScript newbie, may I ask how – in ExtendScript – can I extract the NAMES of each of the artlayers to an array please?
2
Answers
Basically it can be done this way:
The array
names
will contain the names.But I don’t know what you want to do with this array. Do you mean to save it as a TXT file?
Scripting with sub-layers is often a pain. One of the best things to do is loop over the whole Photoshop file – which can get slow on how may layers you have. – You might find it useful: