Edit in GitHubLog an issue

LayerCompCreateOptions

An object literal can be constructed with any of the following properties and passed to LayerComps.add. As a type, LayerCompCreateOptions can be used in Typescript development.

Copied to your clipboard
const options = { name: "mockup", comment: "First attempt", visibility: true };
await require('photoshop').app.activeDocument.layerComps.add(options);
NameTypeDefaultMin VersionDescription
appearance
boolean
false
24.0
Record the state of the layers' effects.
childComp
boolean
false
24.0
Record the state of any Layer Comps contained in the recorded layers' Smart Objects.
comment
string
null
24.0
The comment appears in the Layer Comp Options dialog.
name
string
-
24.0
The name shown in the Layer Comps panel. If no value is provided, then a name will be generated following the template, "Layer Comp #".
position
boolean
true
24.0
Record the state of the layers' position.
visibility
boolean
false
24.0
Record the state of the layers' visibility.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.