Skip to Content

Talking hands

Three friends across a room talk only in hand signs, from pleading to a wave to come over.

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, HumanEmblem, HumanPerformance } from "@automovie/motions";

// amy: body f1, at (0, 0) m, facing 30°, trained
const amy = HumanChain.subject("amy")
  .registered("palmsTogether", {})
  .registered("crossedFingers", {})
  .registered("blownKiss", {})
  .registered("blownKissSend", {})
  .act("gesture", { kind: "raiseHand" })
  .registered("thumbsUp", {})
  .registered("okSign", {})
  .registered("comeHere", {});

// bob: body m1, at (1.2, 0.4) m, facing 270°, trained
const bob = HumanChain.subject("bob")
  .registered("thumbsDown", {})
  .registered("countFour", {})
  .registered("countFive", {})
  .registered("facepalm", {})
  .registered("dontKnow", {})
  .registered("okSign", {})
  .registered("victorySign", {});

// cat: body m2, at (0.4, 1.2) m, facing 200°, trained
const cat = HumanChain.subject("cat")
  .registered("shakeFist", {})
  .registered("coverEars", {})
  .registered("coverMouth", {})
  .registered("hush", {})
  .registered("halt", {});

const scene = amy.with(bob, cat);

// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanEmblem.palmsTogether, HumanEmblem.crossedFingers, HumanEmblem.blownKiss, HumanEmblem.blownKissSend, HumanEmblem.thumbsUp, HumanEmblem.okSign, HumanEmblem.comeHere, HumanEmblem.thumbsDown, HumanEmblem.countFour, HumanEmblem.countFive, HumanEmblem.facepalm, HumanEmblem.dontKnow, HumanEmblem.victorySign, HumanEmblem.shakeFist, HumanEmblem.coverEars, HumanEmblem.coverMouth, HumanEmblem.hush, HumanEmblem.halt];

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

const input: IAutoMovieMotionHumanPerformance.IInput = {
  seed: "talking-hands",
  performers: [
    { subject: "amy", body: bodies["f1"]!, at: { x: 0, y: 0, z: 0 }, yaw: 30, proficiency: { level: "trained" } },
    { subject: "bob", body: bodies["m1"]!, at: { x: 1.2, y: 0, z: 0.4 }, yaw: 270, proficiency: { level: "trained" } },
    { subject: "cat", body: bodies["m2"]!, at: { x: 0.4, y: 0, z: 1.2 }, yaw: 200, proficiency: { level: "trained" } },
  ],
  composition: scene.node,
  laws,
};
const performance = new HumanPerformance(input);