There is an updated DOM API in PS 24.1 which is now in public Beta.
If you can’t wait for documentation and new TypeScript types that are currently work in progress… here is a quick summary of what you can experiment with. API is similar to ExtendScript DOM but not exactly 1:1
Preferences
Adds API to change some of the Photoshop preferences. Only first set of 38 preferences was added. For now, those existing in ExtendScript DOM. More will follow in later PS versions. Unlike in ExtendScript DOM it is now structured in categories similar to UI.
Layer Comps
-
Document.layerComps
property is now added, giving access to similar APIs from ExtendScript to work with layer comps. - LayerComps collection
- Adds the following Layer Comp methods:
add()
,removeAll()
,getByName()
- Create new layer comps in the document using
LayerComps.add()
method. Constructors for them can be found in app object.
- Adds the following Layer Comp methods:
- LayerComp class
- Adds the following Layer Comp properties:
name
,comment
,selected
,appearance
,position
,visibility
,childComp
. - Adds the following Layer Comp methods:
apply()
,recapture()
,remove()
,resetLayerComp()
,duplicate()
- Adds the following Layer Comp properties:
If you find any issues or bugs please let me know.
Later more information will follow so this is just quick heads up to let you know