Re: How to get all layer (even in layer sets) in Photoshop
Re: How to get all layer (even in layer sets) in Photoshop
- Subject: Re: How to get all layer (even in layer sets) in Photoshop
- From: Paul Skinner <email@hidden>
- Date: Wed, 16 Dec 2009 10:42:21 -0500
Note: This will list every art layer including adjustment layers etc.
if you only want pure art layers then you will need to check that the
layer's kind is 'normal' ( a constant not text ) before adding them to
the artLayers list.
Paul
On Dec 16, 2009, at 10:29 AM, Paul Skinner wrote:
Leo,
An alternate construction might be more understandable.
set {artLayers, layerSets, i} to {{}, {}, 0}
tell application "Adobe Photoshop CS3"
tell document 1
set artLayers to artLayers & every art layer
set layerSets to layerSets & every layer set
repeat
set i to i + 1
try
tell item i of layerSets
set artLayers to artLayers & every art layer
set layerSets to layerSets & every layer set
end tell
on error
exit repeat
end try
end repeat
end tell
end tell
On Dec 14, 2009, at 3:41 PM, Leo Law wrote:
Cool, thanks a lot.
I just have a question, say this script runs into a layer set half
way through the layers and then goes off on that branch... how do
you come back up, so to speak, and get the remaining layers?
Ml, Leo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden
)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden