Skip to main content
October 11, 2009
Question

Apple Script: How to deactivate single channels of a layer?

  • October 11, 2009
  • 1 reply
  • 1753 views

Hi there,

can someone probably tell me how to deactivate specific channels of a layer?

Example: Photoshop file with two layers, say CMYK. I want to deactivate CMY of the first layer, so that only K can be seen.

Unfortunately I didn’t find any information in the PS scripting guide nor in the scripting reference.

Thanks for any help on this.

andy

This topic has been closed for replies.

1 reply

Paul Riggott
Inspiring
October 11, 2009

In the scripting guide, page 25 states...

Set the active channels to the first and third channel using a channel array:
set current channels of current document to ¬
{ channel 1 of current document, channel 3 of current document }
Alternatively, select all component channels using the component channels property of the Document
object.
set current channels of current document to component channels ¬
of current document

October 12, 2009

Hi Paul, thanks for your reply.

I know this one, but it affects the channels of the whole document, not of a single layer. I need to deactivate the magenta channel of the second layer only, for example.

Paul Riggott
Inspiring
October 12, 2009

Channels are at document level not layer level that's why you can't find anything. A work-a-round might be to duplicate the layer to a new document, do the channels adjustments and put it back?