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 clipboard1// Iterate through all channels in the document2app.activeDocument.channels.forEach(h => console.log(h.name));3
Hierarchy#
Array<Channel>
↳ Channels
Indexable#
â–ª [index: number]: Channel
Used to access the channels in the collection
Copied to your clipboard1// Iterate through all channels in the document2app.activeDocument.channels.forEach(h => console.log(h.name));3
Properties#
Name | Type | Access | Description |
---|---|---|---|
length | number | Read-only | Number of Channel elements in this collection |
parent | Document | Read-only | The owner document of this Channel collection |
typename | string | Read-only | The name for this object collection: Channels |
Methods#
add#
Create a new alpha channel in this document
getByName#
Find the first channel with the matching name
Parameters#
Name | Type |
---|---|
name | string |
removeAll#
void
Remove all Alpha channels in the parent document