Skip to main content
June 14, 2012
Question

How to manipulate layer masks in ExtendScript?

  • June 14, 2012
  • 1 reply
  • 4661 views

I'm referencing this previous discussion (circa 2008, 4 years ago) regarding layer mask manipulation in ExtendScript:

http://forums.adobe.com/message/1890037#1890037

1. Is this still the only way to create a layer mask?

2. Regarding the first, where do I find documentation on the esoteric looking "CharIdToTypeId" methods?

Thank you

This topic has been closed for replies.

1 reply

June 14, 2012

Not sure if this entirely completes my answer, but til about the Scripting Listener plug-in. That just might make things a lot "simpler".

June 14, 2012

So using the original posting and some Scripting Listener tests, I still have a couple questions:

1. Where is the documentation for all the different charIdToTypeId names?

     - The following contains event codes, but not target codes, or others: http://cssdk.host.adobe.com/sdk/1.0/docs/WebHelp/app_notes/photoshop.htm

2. How do I make a layer active in Javascript? (Since making a layer mask in that incredibly convoluted script produced by the Scripting Listener plug-in works on the "current" active layer.) (Apparently Document.activeLayer is a writable property. I'd still like to know how to add a mask to a layer that is not "active".)

June 23, 2012

Where is the documentation for all the different charIdToTypeId names?

There is no comprehensive documentation for them. A lot of it you can get via the file PITerminology.h that ships with the Photoshop SDK. Various third parties have tried to gather all the IDs they could. If you google around you’ll find several such lists.