• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Photoshop layer mask scripting - stumped
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Photoshop layer mask scripting - stumped


  • Subject: Re: Photoshop layer mask scripting - stumped
  • From: Roger Howard <email@hidden>
  • Date: Tue, 14 Sep 2004 09:30:02 -0700


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.


Since there's a load selection, but not a save selection, command in
the object model, is it possible to use this to copy a selection over?

Try it. There's no need to have a save selection; the selection loaded is, well, the selection.

Save Selection in Photoshop is the opposite of Load Selection - it takes the current selection and dumps it into an alpha channel, mask, or layer mask. I suppose if I knew how to address layer masks I could simply take the selection into a new layer mask and fill it, giving me the same results.


Otherwise, what's the fastest way to transfer a selection from one
document to another (specifically, from a layer mask in one document to
a layer mask in another)?

I'm afraid I get lost with layer masks. But if nothing else works, install the Listener plug-in and let PS write it in javascript for you.

That was one of the first things I tried... the JavaScript it dumped out was so bloated and arcane it made me long for something simple, like writing a regex implementation in vanilla AppleScript.


I suppose I'll dig into the JavaScript API docs next... still hoping for some verification from anyone who lives breathes the AppleScript object model in Photoshop CS.

Thanks for the, ummm, encouragement! :)

roger howard
email & im @ <email@hidden>
photos @ <http://www.pbase.com/rogerhoward>

_______________________________________________
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


  • Follow-Ups:
    • Re: Photoshop layer mask scripting - stumped
      • From: Martin Orpen <email@hidden>
References: 
 >Photoshop layer mask scripting - stumped (From: Roger Howard <email@hidden>)
 >Re: Photoshop layer mask scripting - stumped (From: "Shane Stanley" <email@hidden>)

  • Prev by Date: Re: Selected text in Mail.app?
  • Next by Date: Re: Scripting 'page width' in apple mail?
  • Previous by thread: Re: Photoshop layer mask scripting - stumped
  • Next by thread: Re: Photoshop layer mask scripting - stumped
  • Index(es):
    • Date
    • Thread