Adobe Photoshop Prerelease Build 61: Jun 24, 2021
Updated DOM API
- New
Layers
collection, the oldlayerTree
object is now calledlayers
but as a collection using the JavaScript Proxy object. See below for introduction of collections. The oldlayers
behavior is no longer part of the DOM. Most scripts can be updated to replacelayerTree
withlayers
. A document and a layer, if the layer kind is group, will have a validlayers
collection. Apixel
layer will havenull
for thelayers
property. A collection has the same semantics as an Array. The additional ExtendScript routines ofadd
andgetByName
are also available. UseLayerKind.GROUP
on alayer
to see if anylayers
are available.GroupLayer
has been removed. UseactiveLayer.kind === LayerKind.GROUP
instead.