Compositions

Compositions

Create visual, audio, and interactive projects in Mill.

A Composition is an editable visual, motion, or audio Project. Its source uses HTML, CSS and JavaScript, with SVG, canvas, spatial graphics and audio available in the same browser runtime for preview and capture.

How a Composition is authored

The source entry point is index.html, with local scene files, styles and JavaScript. The code owns the authored output and optional animation. Create establishes the Composition's stable identity; edit changes the source for that existing identity. Source is authored by the agent and is read-only to users in the current workflow.

The compiler bundles supplied local files without running authored code on the server. The output runs in an isolated browser frame with scoped access to owned Media and no customer session, host filesystem or provider credentials.

Preview, timing, and capture

Preview and capture share one authored browser document and timeline runtime. Mill authors deterministic animation from timeline time, so you can inspect a moment in Preview and render that same output.

The code owns the output, including cameras, lights, graphics and sound. World view offers independent navigation; Output shows the authored frame. PNG and PDF capture pixels, MP4 captures video with declared audio, and MP3 exports audio. Source remains editable; arbitrary browser content does not export as an editable SVG or GLB.

Assets in a scene

A Composition can use available media as scene resources. Tell Mill which items belong in the scene and what each should do—for example, a product image as the foreground subject, a clip as the background, or audio as narration.

The Composition source and its Project identity remain the editable work. Rendered images, video, and audio are outputs; they do not become a replacement source for the scene. Keep or export the output you need, and return to the Composition when you want to revise the scene itself.

Plan before authoring

  • Describe the audience, message, duration, and intended output.
  • Identify the assets and audio to use, including their role in the scene.
  • Specify the visual hierarchy and important timing or transitions.
  • Ask Mill to preview and validate the scene, then refine the source while preserving the parts that already work.