AutoMovie API
    Preparing search index...

    Function resolveBeatSnapshot

    • Every scene actor's resumable state at one shot-local instant, the one body behind resolveBeatOpening (instant = 0) and resolveBeatEnd (instant = shot.duration).

      Each node of props.scene yields one actor state, in scene order. A node with a performance plays that performance's motion from its startOffset, so its clip-local time is max(0, instant - startOffset); any other node plays its own motion at instant, or holds its staged pose when it has none. The pose root is folded into the staged transform unless the shot's object motions bake both a translation and a rotation for the node at that time: a mounted rider, a grabbed prop, or a launched one then takes the baked world transform and the baked trailing velocity instead, because the shot left it in a hand or where it landed rather than at its staged spot. Baked samples use the shot clock, but their velocity window begins no earlier than the actor's performance start: a newly starting performance has no trailing velocity history. Nodes without a performance use the shot's zero boundary. The persistent mount binding and ground-IK plants are carried through. Plant intervals are currently selected on the pose-local clock; the production performer writes startOffset zero, where that clock agrees with the shot. A supplied nonzero offset therefore shifts plant selection without shifting baked object transforms.

      Throws when two motions share an id, two performances share a node, two mounts or two plant entries name the same node, or a node or performance names a motion that props.motions does not supply, because a snapshot built from an ambiguous or missing input would hand the next beat a state no shot produced.

      Parameters

      • props: IAutoMovieResolveBeatProps

        The compiled shot, its staged scene and motions, and the mount and plant facts to carry.

      • instant: number

        Shot-local seconds to sample at.

      Returns IAutoMovieBeatEndState

      The beat id, the shot id, and one state per scene node.