Changing a mug's grip
A guest shifts her mug from handle to body, looks out a window and shifts it back.
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, HumanGestureRows, HumanObject, HumanPerformance, HumanRegrasp, HumanUpperRows } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";
const counter = archetypes.createTable({ kind: "counter" });
const counterAt = { at: { x: 0, y: 0, z: 0.53 }, yaw: 180 };
const mug = archetypes.createDrinkware({ kind: "mug" });
const mugAt = { at: { x: -0.18, y: 0.914, z: 0.3 }, yaw: 0 };
// gst: body f1, at (0, 0) m, facing 0°, trained
const gst = HumanChain.subject("gst")
.act("pickUp", { prop: "mug", handle: "handle", hand: "right" })
.registered("regrip", { prop: "mug", side: "right", to: "body" })
.act("look", {
target: {
kind: "point",
at: { x: -0.18, y: 1.05, z: 0.3 },
frame: "world",
},
seconds: 1,
})
.act("walk", { to: { x: 1.2, y: 0, z: -0.6 }, face: 90 })
.act("look", {
target: {
kind: "point",
at: { x: 2.6, y: 1.6, z: -0.6 },
frame: "world",
},
cue: "seen",
seconds: 1.1,
})
.registered("handOnHip", { side: "left" })
.registered("gestureNod", { count: 1 })
.act("walk", { to: { x: 0, y: 0, z: 0 }, face: 0 })
.registered("regrip", { prop: "mug", side: "right", to: "handle" })
.registered("gestureWave", { side: "left", count: 1 });
const scene = gst;
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanRegrasp.regrip, HumanUpperRows.handOnHip, HumanGestureRows.gestureNod, HumanGestureRows.gestureWave];
const props = [
HumanObject.prop("counter", counter, counterAt),
HumanObject.prop("mug", mug, mugAt),
];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "changing-a-mug-grip",
performers: [
{ subject: "gst", body: bodies["f1"]!, at: { x: 0, y: 0, z: 0 }, yaw: 0, 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.