GroupLayerCreateOptions
An object literal can be constructed with any of the following properties and passed to Document.createLayerGroup. As a type, GroupLayerCreateOptions can be used in Typescript development.
const options = { name: "myGroup", opacity: 50 };
await require('photoshop').app.activeDocument.createLayerGroup(options);
Name
Type
Default
Min Version
Description
group
boolean
false
22.5
Whether to use previous layer to create clipping mask.
name
string
-
22.5
Name of the newly created layer group. If no value is provided, then a name will be generated following the template, "Group #".
opacity
number
100
22.5
Opacity of the newly created layer or group.