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));

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));

Properties

名称类型访问最低版本描述
lengthnumberR23.0Number of Channel elements in this collection.
parentDocumentR23.0The owner document of this Channel collection.
typenamestringR23.0The name for this object collection: Channels.

Methods

add

23.0

Channel

Create a new alpha channel in this document.


getByName

23.0

Channel

Find the first channel with the matching name.

Parameters

名称类型
namestring

removeAll

23.0

void

Remove all Alpha channels in the parent document.

Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.