Powder room
Two guests freshen up side by side: lipstick and cream, a nose blown and eyes rubbed.
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 } from "@automovie/motions";
// dot: body f2, at (-0.5, 0) m, facing 0°, trained
const dot = HumanChain.subject("dot")
.registered("applyLipstick", {})
.act("gesture", { kind: "touchFace" })
.act("look", {
target: { kind: "person", subject: "eli", region: "face" },
cue: "seen",
})
.act("gesture", { kind: "shakeHead" })
.registered("applyCream", {})
.registered("checkWatch", {});
// eli: body m1, at (0.5, 0) m, facing 0°, trained
const eli = HumanChain.subject("eli")
.registered("blowNose", {})
.registered("rubEyes", {})
.registered("scratchNape", { side: "left" })
.act("look", {
target: { kind: "person", subject: "dot", region: "face" },
cue: "seen",
})
.act("gesture", { kind: "shrug" })
.registered("fanSelf", {});
const scene = dot.with(eli);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanHabit.applyLipstick, HumanHabit.applyCream, HumanHabit.checkWatch, HumanHabit.blowNose, HumanHabit.rubEyes, HumanHabit.scratchNape, HumanHabit.fanSelf];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "powder-room",
performers: [
{ subject: "dot", body: bodies["f2"]!, at: { x: -0.5, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "eli", body: bodies["m1"]!, at: { x: 0.5, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
],
composition: scene.node,
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.