Edit in GitHubLog an issue

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.

Copied to your clipboard
1const options = { name: "myLayer", opacity: 80, blendMode: constants.BlendMode.COLORDODGE };
2await require('photoshop').app.activeDocument.createLayer(options);
NameTypeDefaultMin VersionDescription
blendMode
NORMAL
22.5
Blend mode of the newly created layer or group.
color
NONE
22.5
Label color of the newly created layer or group.
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.
mode
NORMAL
22.5
Deprecated, please use `blendMode` above as it will override this value.
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.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.