AutoMovie API
    Preparing search index...

    Function markAutoMovieSkeleton

    • Turn articulated bodies at one cached instant into inspection marks: one bone segment per joint, from the parent segment's position to the child's, and one joint point per segment.

      It works on any body a physical profile describes, whatever its rig. A bone mark has kind bone, label bone, colour ochre c8a24a and path <body>/<child>/bone; a joint mark has kind joint, label joint, colour pink ff7eb6 and path <body>/<bone>/joint, so a pattern naming a body or one of its bones selects its marks. Both are in world metres and unanchored, because the cached positions are world positions.

      It throws naming the body and bone when the frame lacks a segment the profile names.

      const marks = markAutoMovieSkeleton({ bodies, frame: cache.at(seconds) });
      

      Parameters

      • props: IAutoMovieMarkSkeleton.IProps

        Physical profiles and one cached world pose to turn into skeleton inspection marks.

        Body ids resolve into frame.bodies; profile joints connect parent and child bone origins, and profile segments supply joint-point marks in world metres. markAutoMovieSkeleton borrows profiles and the frame and allocates detached mark coordinate arrays in body, joint and segment order. A missing named frame segment throws with body and bone identity; an empty body list returns no marks. Profiles provide topology, not a second pose source.

        • bodies: readonly { id: string; profile: IAutoMoviePhysicalProfile }[]

          Borrowed scene bodies in output order; each profile supplies the skeleton topology.

        • frame: IAutoMoviePhysicalFrame

          Borrowed cached or interpolated pose at the inspected film second; every named segment must be present.

      Returns IAutoMovieMark[]

      Every body's bone marks in joint order, then its joint marks in segment order, body by body.