Re: Photoshop layer mask scripting - stumped
Re: Photoshop layer mask scripting - stumped
- Subject: Re: Photoshop layer mask scripting - stumped
- From: Martin Orpen <email@hidden>
- Date: Tue, 14 Sep 2004 21:35:27 +0100
Title: Re: Photoshop layer mask scripting - stumped
on 14/9/04 5:30 pm, Roger Howard at email@hidden wrote:
>
> On Sep 13, 2004, at 10:37 PM, Shane Stanley wrote:
>
>> On Mon, 13 Sep 2004 17:12:22 -0700, Roger Howard wrote:
>>
>>> Today, my goal is relatively straightforward
>>
>> To you, perhaps. This Photoshop stuff hurts my head; and to think that
>> PS
>> heads think scripting is arcane...
>
> I don't think scripting in general is arcane, but in this instance it
> sure is...
>
>>> First, how do I get a layer mask of a layer?
>>
>> I don't think you can.
>
> Ouch. Ok, then I can use a one-step action to load the layer mask of
> the current layer into a selection... which I believe I can use.
Don't let Shane put you off with all that _javascript_ talk ;-)
Discover the joys of the UI. You can get the contents of a layer mask like this:
tell application "Adobe Photoshop 7.0"
activate
set current layer of current document to layer 2 of current document
select all current document
end tell
tell application "System Events"
tell process "Adobe Photoshop 7.0"
launch
keystroke "\\" using {command down}
delay 1
keystroke "v" using {shift down}
delay 1
keystroke "c" using {command down}
end tell
end tell
That should get you started...
Regards
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden