Skip to Content

Change of mind

A walker turns back and runs; a jogger stops for breath, watches him and jogs on.

Loading the take.

Each person is a chain of typed actions from @automovie/motions. This is what an agent writes for the scene; Composing motion explains the parts.

import type { IAutoMovieMotionHumanBody, IAutoMovieMotionHumanPerformance } from "@automovie/interface";
import { HumanChain, HumanHabit, HumanPerformance, HumanStance } from "@automovie/motions";

// max: body m2, at (-3, 0) m, facing 90°, trained
const max = HumanChain.subject("max")
  .act("walk", { to: { x: 3, y: 0, z: 0 } })
  .until({ share: 0.5 })
  .act("run", { to: { x: -3, y: 0, z: -1 }, pace: "jog" })
  .act("look", {
      target: { kind: "person", subject: "noa", region: "face" },
      cue: "seen",
    })
  .registered("checkWatch", {})
  .act("walk", { to: { x: -3, y: 0, z: -4.2 } });

// noa: body f2, at (3, 2) m, facing 270°, trained
const noa = HumanChain.subject("noa")
  .act("run", { to: { x: -3, y: 0, z: 2 }, pace: "jog" })
  .until({ share: 0.4 })
  .act("walk", { to: { x: 0, y: 0, z: 4 } })
  .registered("handsOnHips", { seconds: 1.6 })
  .registered("neckRoll", { count: 1 })
  .act("look", {
      target: { kind: "person", subject: "max", region: "face" },
      cue: "seen",
      seconds: 1.2,
    })
  .registered("checkWatch", {})
  .act("run", { to: { x: -3.5, y: 0, z: 4 }, pace: "jog" });

const scene = max.with(noa);

// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanHabit.checkWatch, HumanStance.handsOnHips, HumanStance.neckRoll];

// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;

const input: IAutoMovieMotionHumanPerformance.IInput = {
  seed: "change-of-mind",
  performers: [
    { subject: "max", body: bodies["m2"]!, at: { x: -3, y: 0, z: 0 }, yaw: 90, proficiency: { level: "trained" } },
    { subject: "noa", body: bodies["f2"]!, at: { x: 3, y: 0, z: 2 }, yaw: 270, proficiency: { level: "trained" } },
  ],
  composition: scene.node,
  laws,
};
const performance = new HumanPerformance(input);