Channels
A collections class allowing for array access into a document's channels, while also providing familiar methods from ExtendScript, like getByName
// Iterate through all channels in the document
app.activeDocument.channels.forEach(h => console.log(h.name));
Fixes in Photoshop 24.6
- Component channels should work now correctly in non-English localizations
- Channel should be now returned correctly in Bitmap and Indexed Color modes
Indexable
▪ [index: number]: Channel
Used to access the channels in the collection
// Iterate through all channels in the document
app.activeDocument.channels.forEach(h => console.log(h.name));
Fixes in Photoshop 24.6
- Component channels should work now correctly in non-English localizations
- Channel should be now returned correctly in Bitmap and Indexed Color modes
Properties
Methods
add
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.0</span>
<br/> Channel
Create a new alpha channel in this document.
getByName
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.0</span>
<br/> Channel
Find the first channel with the matching name.
Fixes in Photoshop 24.6
- *Non-English locales return correctly for component channels.
Parameters
nameremoveAll
<span class="minversion" style="display: block; margin-bottom: -1em; margin-left: 36em; float:left; opacity:0.5;">23.0</span>
<br/> void
Remove all Alpha channels in the parent document.