Smoking break
Two colleagues smoke at a counter; one stubs out, the other talks and checks his watch.
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, HumanObject, HumanPerformance, HumanStance } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";
const counter = archetypes.createTable({ kind: "counter" });
const counterAt = { at: { x: 0, y: 0, z: 0.65 }, yaw: 180 };
const cig = archetypes.createSmoking({ kind: "cigarette" });
const cigAt = { at: { x: -0.18, y: 0.914, z: 0.42 }, yaw: 90 };
// gus: body m2, at (0, 0.12) m, facing 0°, trained
const gus = HumanChain.subject("gus")
.act("pickUp", { prop: "cig", handle: "grip" })
.registered("smoke", { prop: "cig" })
.registered("ashTap", {
prop: "cig",
target: {
kind: "point",
at: { x: -0.1, y: 0.914, z: 0.5 },
frame: "world",
},
})
.registered("smoke", { prop: "cig" })
.registered("stubOut", {
prop: "cig",
target: {
kind: "point",
at: { x: -0.1, y: 0.914, z: 0.5 },
frame: "world",
},
})
.registered("scratchNape", { side: "left" });
// hal: body m1, at (1.1, 0.6) m, facing 270°, trained
const hal = HumanChain.subject("hal")
.registered("lightCigarette", {})
.registered("handsInPockets", { seconds: 0.9 })
.act("look", {
target: { kind: "person", subject: "gus", region: "face" },
})
.act("gesture", { kind: "palmsUp" })
.registered("armsCrossed", { seconds: 1.1 })
.act("gesture", { kind: "nod" })
.registered("thinking", { seconds: 1.1 })
.act("gesture", { kind: "shrug" })
.registered("checkWatch", {});
const scene = gus.with(hal);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanHabit.smoke, HumanHabit.ashTap, HumanHabit.stubOut, HumanHabit.scratchNape, HumanHabit.lightCigarette, HumanStance.handsInPockets, HumanStance.armsCrossed, HumanStance.thinking, HumanHabit.checkWatch];
const props = [
HumanObject.prop("counter", counter, counterAt),
HumanObject.prop("cig", cig, cigAt),
];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "smoke",
performers: [
{ subject: "gus", body: bodies["m2"]!, at: { x: 0, y: 0, z: 0.12 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "hal", body: bodies["m1"]!, at: { x: 1.1, y: 0, z: 0.6 }, yaw: 270, proficiency: { level: "trained" } },
],
composition: scene.node,
props,
laws,
};
const performance = new HumanPerformance(input);Each person's actions on the film clock, with their named instants, as the engine placed them.
The timeline appears when the take is drawn.
The same composition in 4 takes on the player's clock. Each changes one choice and keeps the rest; the other takes are computed in this page, which takes a few seconds.