@motion-script/core / TreeState
Interface: TreeState
Defined in: project/tree.ts:38
Properties
children
children:
TreeState[]
Defined in: project/tree.ts:62
endFrame?
optionalendFrame?:number
Defined in: project/tree.ts:61
Absolute timeline frame at which this node was last present. Together with startFrame this bounds the node's track bar to its true lifespan.
id
id:
string
Defined in: project/tree.ts:40
Per-instance UUID. Changes on every rebuild — key on path instead.
meta?
optionalmeta?:Record<string,unknown>
Defined in: project/tree.ts:49
path
path:
string
Defined in: project/tree.ts:47
Structural path from the scene root ("" for the root, "0.2" for the
third child of the first). Stable across rebuilds — unlike id — so a host
can key selection, expansion, and overrides on it. It is also what
getNodeBox / setNodeOverride accept.
startFrame?
optionalstartFrame?:number
Defined in: project/tree.ts:56
Absolute timeline frame (across the whole video) at which this node first appears. Undefined when its lifespan is unknown (e.g. no precomp data).
type
type:
string
Defined in: project/tree.ts:48
waveform?
optionalwaveform?:WaveformInfo[]
Defined in: project/tree.ts:51
Audio clips owned by this node, for waveform rendering in the timeline.