Skip to content
Shapemetry

@huukhanhnguyen/model / schema/animation

schema/animation

AnimatedTrack

AnimatedTrack = { loop?: boolean; node: ParameterNodeHost; track: Track; }

One resolved binding a player can apply — the authoring node, the curve its animation names, and the terms that node plays it on. The curve carries samples only; loop rides here because it is a property of THIS use, not of the curve (see evaluate/animation.ts's header).

loop?

optional loop?: boolean

node

node: ParameterNodeHost

track

track: Track


PlayerModel

PlayerModel = { nodes: NodeCollectionHost; trackPool: Map<string, Track>; }

What AnimationPlayer needs from its host: the nodes to search for animated parameters, and the resolved track pool their .animation key references resolve against.

nodes

nodes: NodeCollectionHost

trackPool

trackPool: Map<string, Track>

Last updated: 📖 1 min readEdit on GitHub