Edit in GitHubLog an issue

LayerComp

代表文件中的一个 图层编组

Properties

名称类型访问最低版本描述
appearancebooleanR W24.0如果为true,图层编组将记住层的外观(层样式)设置。
childCompbooleanR W24.0如果为true,图层组合将记住在属性面板中设置的哪个智能对象图层组合。
commentstringR W24.0图层编组的描述。
docIdnumberR24.0该图层编组的文件的ID。
idnumberR24.0适用于 batchPlay 操作。这个图层编组的ID和它的文件ID可以在这个文件或图层编组的生命周期内用来代表这个图层编组。
namestringR W24.0图层编组的名称。
parentDocumentR24.0该层的所有者的 文档Comp
positionbooleanR W24.0如果为true此图层编组将记住层的位置。
selectedbooleanR24.0如果为true,则该图层合成器目前在图层合成器面板中被选中。 注意:选中并不意味着这个图层组合被应用到文档中。
typenamestringR24.0被引用的图层编组对象的类别名称
visibilitybooleanR W24.0如果为true此图层是可见的(小眼睛)

Methods

apply

24.0

async : Promise<void>

将图层编译应用到文档中。


duplicate

24.0

async : Promise<LayerComp>

复制此图层comp


recapture

24.0

async : Promise<void>

更新此图层组件的图层记录状态。

适用于所有层和该层组件支持的所有属性。

async : Promise<void>

更新该图层的记录状态。

Parameters

名称类型描述
argLayerCompRecaptureOptions-
layers?Layer[]if this argument is passed then only specified layers will be recaptured.

remove

24.0

async : Promise<void>

从文档中删除此对象。


resetLayerComp

24.0

async : Promise<void>

将图层压缩状态重置为文档状态。

Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.