Edit in GitHubLog an issue

Channels

A collections class allowing for array access into a document's channels, while also providing familiar methods from ExtendScript, like getByName

Copied to your clipboard
1// Iterate through all channels in the document
2app.activeDocument.channels.forEach(h => console.log(h.name));
3

Hierarchy#

Indexable#

▪ [index: number]: Channel

Used to access the channels in the collection

Copied to your clipboard
1// Iterate through all channels in the document
2app.activeDocument.channels.forEach(h => console.log(h.name));
3

Properties#

NameTypeAccessDescription
lengthnumberRead-onlyNumber of Channel elements in this collection
parentDocumentRead-onlyThe owner document of this Channel collection
typenamestringRead-onlyThe name for this object collection: Channels

Methods#

add#

Channel

Create a new alpha channel in this document


getByName#

Channel

Find the first channel with the matching name

Parameters#

NameType
namestring

removeAll#

void

Remove all Alpha channels in the parent document

  • Privacy
  • Terms of Use
  • Do not sell my personal information
  • AdChoices
Copyright © 2022 Adobe. All rights reserved.