PixelLayerCreateOptions
An object literal can be constructed with any of the following properties and passed to Document.createLayer. As a type, PixelLayerCreateOptions can be used in Typescript development.
const options = { name: "myLayer", opacity: 80, blendMode: constants.BlendMode.COLORDODGE };
await require('photoshop').app.activeDocument.createLayer(options);
Name
Type
Default
Min Version
Description
fillNeutral
boolean
false
22.5
Whether to fill the layer with a neutral color when applying Blend Mode.
group
boolean
false
22.5
Whether to use previous layer to create clipping mask.
name
string
-
22.5
Name of the newly created layer. If no value is provided, then a name will be generated following the template, "Layer #".
opacity
number
100
22.5
Opacity of the newly created layer or group.