Appearance
hm5-types (source format) / Layer
Interface: Layer
Properties
| Property | Type | Description |
|---|---|---|
adjustment? | boolean | ADJUSTMENT LAYER (After Effects, owner plan 2026-11-22 #9; vector layers, never a mask / motion guide): its own art is not drawn. Each keyframe is like an object layer's (owner 2026-11-24): a key with Keyframe.adjust adjusts the rows BELOW it in the same row list (its folder, or the timeline's top level) with that key's settings — a classic tween blends them into the next key's —, a key without (F7) adjusts nothing. The layer's own alpha / Visible / canned motions scale that; its own filters / colour effect / blend are not used. A mask layer masking it limits the area. Meaning: document fx/adjust.ts, engine renderRows / pixi-hm05 adjustGhost. Absent = an ordinary layer. |
aiMeta? | object | AI OUTPUT layer (owner 2026-11-18): only AI generation creates one (with this provenance); "Convert to normal layer" deletes it and it can never be set back by the user. Exported like any layer. |
aiMeta.jobId | string | - |
aiMeta.prompt | string | - |
aiMeta.provider | string | - |
aiMeta.sourceLayerIds | string[] | - |
binds? | Record<string, string> | BINDS (owner 2026-11-22, plan 2026-11-21-inputs-bind-expression): properties worked out by a formula instead of read from the timeline — channel → the formula AS SAVED (ValueFormula.expr spelling; value in it = what the timeline says). Channels of an object layer's ONE object: "x" "y" "rotation" "scaleX" "scaleY" "skew" "alpha" (0..1) "visible" "text" (a text object's content) "progress" (0..1: which frame a symbol shows) "in.<rowId>" (an Input of the symbol it shows); the layer's own start with "layer." — on a vector layer "layer.stroke.<i>.<trimStart | trimEnd | trimOffset | dashOffset>" = the line of the i-th object of the key shown. Meaning: document binds.ts. Absent = none. |
blendMode | | "color" | "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "add" | "difference" | "color-burn" | "color-dodge" | "linear-burn" | "hard-light" | "soft-light" | "exclusion" | "linear-light" | "pin-light" | "vivid-light" | "hard-mix" | "subtract" | "divide" | "saturation" | "luminosity" | "invert" | "layer" | "alpha" | "erase" | every layer with visual output (vector/bitmap/motion). Ignored on label/script. |
bones? | BoneRig | bone layers only (type "bone"): the bones and their keys |
bonesExpanded? | boolean | a BONE layer shown with one timeline row per bone under it (owner 2026-11-22); a view flag saved like soundExpanded. Absent = one row. |
camera? | CameraSettings | camera layers only (§4.3): the frame size; enabled = the camera is on (off: hidden from the timeline, exports use the stage) |
cameraSpace? | boolean | visual layers: render in CAMERA SPACE — the camera transform is NOT applied; content is pinned to the camera frame. Set automatically on AI-video layers whose source frames were rendered through the camera (§4.3), so camera motion is not applied twice. |
cannedMotions? | CannedMotion[] | canned motions (bars above the layer row); absent = none |
clip? | boolean | CLIPPING MASK (Photoshop, owner 2026-11-01): the layer is clipped to the CLIPPING BASE — the nearest row below it among its siblings that is not clipped (only clipped rows in between). The base (a visual layer or a folder, not a mask / motion guide) draws normally AND its alpha (× its opacity, hidden = nothing) is where the clipped rows show. No usable base = drawn unclipped. THE rule: clipBaseIndex in walk.ts. Mask / motion-guide layers are never clipped. |
colorEffect? | ColorEffect | Flash Color Effect over the whole layer (editor + publish, before its filters); absent = none |
enabled | boolean | script/label layers only: whether their payload takes effect. Lets the user keep parallel sets, e.g. one script layer for preview, one for export, toggled by checkbox. Ignored on visual layers. |
fillAlpha? | number | Photoshop "Fill" opacity, 0..1: the layer's CONTENT is drawn at this alpha while its filters (drop shadow, glow, outline …) are worked out from the content at full alpha; opacity then fades everything. With a layer tween its keys decide (LayerProps.fillAlpha). Absent = 1. Meaning in engine / pixi-hm05 applyLayerFilters. |
filters? | InstanceFilter[] | filters over the whole layer (editor + publish); absent = none |
guide? | boolean | GUIDE layer (owner 2026-11-18, replaced the old "role" list — sketch / reference / text were all just "not exported"): editor only, never exported, hidden in preview / test movie and onion skin. A guide folder (LayerGroup.guide) makes every layer in it one — document isGuideLayer. Absent = false (exported artwork). |
guided? | boolean | guided by the nearest motionGuide layer above it among its siblings (only guided layers in between) |
hidden? | boolean | Properties "Visible" off: the layer is not drawn in exports / publish and shows faint in the editor. Unlike visible (the timeline eye, a view setting that only hides it while editing). Absent = drawn. |
id | string | - |
keyframes | Keyframe[] | sparse keyframes sorted by index; span = until next keyframe or +length |
kind | "layer" | - |
lockAlpha? | boolean | bitmap layers only (owner 2026-11-02, Photoshop "Lock transparent pixels"): painting changes only the colour of pixels that already have paint — every pixel keeps its alpha, empty ones stay empty, the picture does not grow, the eraser is refused. Absent = off. |
locked | boolean | - |
mask? | boolean | Flash mask layer (vector layers): not drawn itself — the area its shapes/symbols/text cover is where the layers it masks show |
masked? | boolean | masked by the nearest mask layer above it among its siblings (only other masked layers / folders in between — Flash's indented layers); no such mask layer = drawn unmasked |
maskInvert? | boolean | mask layers: the masked layers show OUTSIDE the mask's art instead |
maskMode? | MaskMode | mask layers (owner 2026-10-25): what of the mask's art counts — absent = its shape (anything drawn shows, Flash), "alpha" = its alpha (semi-transparent art shows the masked layers faintly), "luminance" = its grey level (the art turned black & white: white = fully shown, black / empty = hidden) |
maskUnlinked? | boolean | masked layers (owner 2026-11-02, Photoshop's chain between a layer and its mask): absent = LINKED — moving / scaling / turning the layer's frames as a whole (the selected-frames box, Free Transform of a bitmap key) applies the same matrix to its mask layer's frames there, locked or not (linkedMaskIds); true = the mask stays put. Moving the mask layer itself never moves the masked layers. |
motionEffect? | MotionEffectParams | motion layers only: how strokes render as an effect |
motionGuide? | boolean | Flash classic motion guide (vector layers): its line is the path the guided layers' classic tweens follow; shown in the editor, never exported |
name | string | - |
object? | LayerObject | an OBJECT LAYER (專屬圖層, owner 2026-10-30, layer-model plan §3): the whole layer is ONE object — a symbol instance, text, bitmap or group — like a Unity GameObject. Each keyframe shows it (one element of object.kind) or is a HIDDEN frame (no element: F7) — the object still exists there for scripts, only not drawn; frames before its first key / past its last are hidden too. The layer name is the object's name (scripts, playback targets); its trigger actions and scripts live here. Only object layers can be parents. Absent = a free (mixed) layer, whose objects are animation only — no names, triggers or scripts. |
opacity | number | 0..1, the layer's alpha — in the editor AND every export / publish (with a layer tween, its keys decide instead) |
outlineColor? | string | outline colour "rrggbb"; absent = defaultOutlineColor(layer.id) |
parent? | string | OBJECT PARENTING (owner 2026-10-30, was layer parenting): the id of an OBJECT LAYER of the same timeline whose object this layer follows — its art is in the parent object's space, so the parent's move / turn / scale / skew (classic tweens, its layer tween, canned motions, its own parent) carry it along. Where the parent object is hidden (a hidden frame, before / after its keys) this layer is hidden too (Unity). Meaning in engine layerParentMatrix. Absent / unknown id / not an object layer = no parent. |
parentBone? | string | FOLLOW A BONE (owner 2026-11-22): with parent = a BONE LAYER of the same timeline, the id of the bone this layer's art follows as one piece (a hat, a weapon, an eye): it gets the bone's pose relative to its rest pose, so nothing moves while the bone is at rest. Meaning in engine layerParent. Absent / unknown bone = not following. |
parentLook? | boolean | with a parent: also take its alpha and "Visible" (Properties → Layer "Follow parent's alpha"); absent = the transform only |
psd? | string | the Photoshop layer / group this row was imported from ("layers" mode; PsdPiece.path): "Update from PSD" places new layers next to it and reports rows the new file no longer has. Absent = not from a PSD. |
scriptRunAt? | "runtime" | "export" | "preview" | RESERVED (§15): script layers — when the commands/scripts run. "export" = export-time-only effects (e.g. procedural snow); undefined = "runtime" (default) |
soundExpanded? | boolean | a SOUND layer shown tall in the timeline: every stack level of its sounds gets a full row height (double-click the layer name, owner 2026-11-11); saved like treeCollapsed. Absent = one row. |
sounds? | SoundClip[] | sound layers only: the sounds, any order (they may overlap) |
stageAnchor? | StageAnchor | STAGE ANCHOR (gap plan #17, Rive Layouts lite; visual layers of the MAIN timeline only): when the published stage is shown at another size (responsive page, phone, banner slot), the layer keeps its distance to this edge / the centre, or stretches with the view. With a camera only layers pinned to it (cameraSpace, the HUD) are anchored — the rest is world art. THE rule is anim-format anchorMatrix. Absent = moves with the stage. |
tags | string[] | free-form tags; AI style variants use "style:<key>" |
track? | LayerTrack | "layer tween": a row under the layer keying alpha / visibility / blend / filters / position / rotation / scale; absent = none |
transitions? | SectionTransition[] | SECTION layers only — the timeline's STATE MACHINE (gap plan #1, owner 2026-11-24, Rive / Unity Animator): every section is a state, these are the arrows between them. Any-state arrows (no from) are tried first, then the arrows out of the section the playhead is in, each in this order; the first whose conditions all hold is taken at the clip's next beat (= goto the first frame of to and play). A section with arrows out of it loops. THE rules: anim-format states.ts stateBeat (player + editor preview). Section renames rename from / to (document setFrameSection). Absent = none. |
treeCollapsed? | boolean | the timeline's HIERARCHY view shows this (parent) layer's child layers folded away (▸); saved with the document like a folder's collapsed (owner todo 2026-11-08). Absent = open. |
type | LayerType | - |
visible | boolean | - |
wireframe? | boolean | editor-only outline mode (Flash): the layer's vector art is drawn as thin single-colour lines, no fills. Never affects export / publish. Absent = false. Like visible / locked it is a view flag and skips history. |