Appearance
Export and import scripts / Hm05Script / LayerState
Interface: LayerState
A layer at one frame.
Extends
Properties
| Property | Type | Description | Inherited from |
|---|---|---|---|
aiOutput | boolean | made by AI generation (until converted to a normal layer) | LayerInfo.aiOutput |
alpha | number | 0..1 (layer alpha, layer tweens and canned motions included) | - |
blendMode | BlendMode | - | - |
bounds | Bounds | null | what it draws, timeline space; null = nothing | - |
exported | boolean | among the layers the Export dialog picked | LayerInfo.exported |
filters | Filter[] | - | - |
folder | string | layer folders above it, "Body/Arms" ("" = none) | LayerInfo.folder |
guide | boolean | guide / motion guide: never drawn | LayerInfo.guide |
id | string | - | LayerInfo.id |
keyframe | | { index: number; label?: string; length: number; tween?: "motion" | "shape" | "curve"; } | null | the keyframe showing at this frame | - |
mask | boolean | a mask layer (its art is not drawn, it cuts the layers it masks) | LayerInfo.mask |
masked | boolean | masked by the nearest mask layer above (its folder may be the masked one) | LayerInfo.masked |
maskInvert | boolean | mask layers: the masked layers show outside the art instead | LayerInfo.maskInvert |
maskMode? | "shape" | "alpha" | "luminance" | mask layers: what of the art masks — its shape, its alpha, or its grey level (white = shown) | LayerInfo.maskMode |
matrix | Mat | the layer's move (layer tween / canned motion): content → timeline | - |
name | string | - | LayerInfo.name |
object? | "symbol" | "bitmap" | "text" | "group" | "footage" | an OBJECT layer (one object for the whole timeline; its name is the object's): what the object is; absent = a free layer | LayerInfo.object |
parent? | string | the name of the object layer this layer follows (object parenting); absent = none | LayerInfo.parent |
transform | Transform | - | - |
type | | "vector" | "bitmap" | "motion" | "camera" | "label" | "section" | "script" | "sound" | "marker" | "bone" | - | LayerInfo.type |
visible | boolean | Properties "Visible" (published); false = not drawn | - |
visibleInEditor | boolean | the timeline eye (an editing view setting) | LayerInfo.visibleInEditor |