Files
shinyobjectz bbd7369548 One loop, raea goal: every rule in TypeScript, held at edit, render, publish and done; raea make is the asset tools
The rules are raea/goal's (sdk/goal), run by `raea goal check` at four moments: the hook after a save, every
render's end, raea cloud's publish, and the Stop hook. Rust's cut and goal gates and the box's word, sound, frame and
place checks are packs (MK30-MK39); runtime/cut-plan, runtime/goal-plan, raea make status and the box's check code
are gone with no alias (MK41).

brief.ts is the one registered root (MK43): raea runs it, and every file that imports raea must be reached from it
(the registered check, an error at publish and done). Its tasks are its `plan` (MK44), read from its run and written
back where each is written by `raea goal tasks`, the one path for the app, agents and the box. Its `goal` is one
goal or a workflow of several (MK46), each with its step, after and rules, checked and reported alone. Taste lines
and signed asks run inside the loop (MK47).

`raea goal check|tasks|seen|judge|gates|next` is the loop; `raea make clothes|motion|solid|wear|splat|physics|bake|
sao|tokensynth|sounds|component|blockout|...` the asset tools (MK45). Old names are refused with where they went.
docs/make.feature is docs/goal.feature; tools/legacy-names.sh holds the old names out.

raea's Node mode on JavaScriptCore now gives a CommonJS package's names as named exports (React's jsx), loads a
file a tool imports by URL, keeps process.exit's code from a promise callback, and reads stdin as fd 0, so the goal
runner runs on the shipped binary.
2026-11-29 16:02:31 -08:00

97 lines
6.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "raea make"
summary: "The asset tools: everything a project is made from, each a `raea make TOOL` (components, solids, clothes, motion, splats, physics, bakes, foley, instruments); and a scene, kit or shot goal's steps."
order: 102
sources: ["engine/cli/src/usage.rs", "apps/make/src/lib.rs", "apps/make/src/asked.rs", "apps/make/src/kit.rs", "apps/make/src/kitout.rs", "apps/make/src/shots.rs", "apps/make/src/floor.rs", "apps/make/src/sheet.rs"]
---
`raea make` holds the tools that make things: each is `raea make TOOL`, with its own page. What the work is held to,
and when it's done, is `raea goal`'s.
| Tool | Makes |
| --- | --- |
| [`raea make component`](component.md) | a ready component or set copied into the project |
| [`raea make solid`](solid.md) | solids written in TypeScript, measured and printed |
| [`raea make clothes`](clothes.md) | clothes for SOMA's body |
| [`raea make motion`](motion.md) | a body's motion from a line |
| [`raea make splat`](splat.md) | Gaussian splats trained from a video or images |
| [`raea make physics`](physics.md) | physics bakes |
| [`raea make bake`](bake.md) | light bakes |
| [`raea make wear`](wear.md) | a model's weathering causes |
| [`raea make sao`](sao.md), [`raea make tokensynth`](tokensynth.md), [`raea make sounds`](sounds.md) | foley, instruments and open sample libraries, on this machine |
| `raea make place` | the clearest places in a shot for a text box |
## The steps
Each step reads the scene, kit or shot goal from the brief.ts at or above DIR and works beside it.
- **The blockout stop** (a goal with placed objects): `raea make blockout` draws `review/plan/floor-plan.png` (every
object's footprint at its `at`, turned by its `rot`, labelled with its height; invented ones dashed), renders a
grey-box blockout of the plan from the entrance (`blockout.png`, and its review sheets unless `--no-review`), and
puts the first reference, the blockout and the floor plan on `comparison.png`.
- **A kit**, in order:
- `raea make refs` makes each object's reference from the plan's style images, in its style paragraph, with the
scan template (one object, whole, on plain grey, even light), then the reference sheet `review/refs.png`.
`--only` remakes some, `--dry` quotes it and spends nothing.
- `raea make gen` sends each reference to Tripo H3.1 (150 000 faces for a hero, 60 000 for a prop) and Meshy on
fal, into `out/kit/gen/ID/` (`--tripo`, `--meshy` to change either; `--dry` quotes it).
- `raea make pick-sheet` fits both models to the object's real size and draws each in colour and in clay beside
the reference: `review/picks.png`. `raea make pick ID tripo|meshy "why"` records the pick in out/kit/picks.json.
- `raea make prep` fits each pick to its real size with `raea gen check`, makes a quarter-triangle `ID_lod1.glb`
beside it (`raea blender run blender/decimate.py`), and writes a `.glb.json` sidecar for each.
- `raea make kit` lands the kit as a component set: the workspace's `shared/components/KIT/` (else the project's
`components/KIT/`, or `--to`), one component per object importing its model and LOD from beside it, `lineup.tsx`
with a 1 m bar, `cover.png`, `thumbs/` and `kit.json`; and the job's own `out/kit/` record that the deliverables pack counts.
- **A shot list**: `raea make framing` renders every shot's first, middle and last frame (from its `seconds` at its
`fps`, 30 when left out) with `raea render --at` and puts them on `review/framing.png`, a row a shot, stamped with
its name and time. `raea make lenschart SHOT` renders a shot's first frame at 18, 24, 35, 50, 85 and 135 mm
(RAEA_LENS) onto `review/lens-SHOT.png`. Each shot needs its `composition`.
```sh
raea make blockout
raea make refs --dry && raea make refs
raea make gen --only rotary_phone
raea make pick rotary_phone meshy "Tripo fused the handset to the cradle"
raea make prep && raea make kit --name flight-desk
raea make framing --only counter_push
raea make lenschart counter_push
```
<!-- generated:begin by tools/manual-ref/cli.ts from `raea help --json`; edit only the flag descriptions -->
## Usage
```sh
raea make place FILE [--at S[,S...]] [--box WxH] (the clearest places in a shot for a text box that size, in a 1080-wide frame)
raea make blockout [DIR] [--no-review] (a scene's blockout stop: review/plan/floor-plan.png, a grey-box blockout from the entrance and its review sheets, comparison.png beside reference 0)
raea make refs [DIR] [--only ID,...] [--model M] [--dry] (a kit: every object's reference from the style images, in the plan's style, then review/refs.png; --dry quotes it)
raea make sheet refs [DIR] (review/refs.png again: the style images, then every reference)
raea make gen [DIR] [--only ID,...] [--tripo M] [--meshy M] [--dry] (each reference to both generators, Tripo H3.1 and Meshy on fal: out/kit/gen/ID/)
raea make pick-sheet [DIR] [--only ID,...] (review/picks.png: reference | Tripo | Tripo clay | Meshy | Meshy clay, fitted to size)
raea make pick ID tripo|meshy "why" [DIR] (the pick and its reason, out/kit/picks.json)
raea make prep [DIR] [--only ID,...] (each pick fitted to its real size, a quarter-triangle _lod1 beside it, .glb.json sidecars)
raea make kit [DIR] [--name KIT] [--to FOLDER] (the kit as a component set: shared/components/KIT, lineup.tsx, cover.png, thumbs, kit.json)
raea make framing [DIR] [--only NAME,...] [--out DIR] (a shot list: each shot's first, middle and last frame on framing.png, stamped)
raea make lenschart SHOT [DIR] [--out DIR] (a shot's first frame at 18, 24, 35, 50, 85 and 135 mm on lens-SHOT.png)
```
Headless: it needs nothing running and opens no window. Takes up to 5 arguments besides its flags.
## Flags
| Flag | Takes | What it does |
| --- | --- | --- |
| `--at` | `S` | The moment `check` runs the rules of (default `done`); for `place`, the seconds to read (`S[,S...]`). |
| `--box` | `WxH` | The text box `place` finds room for, in a 1080-wide frame. |
| `--dry` | – | Quote the generation (refs, gen) and make nothing. |
| `--meshy` | `M` | The Meshy model for `gen` (default `fal:meshy/v7.1/image-to-3d`). |
| `--model` | `M` | The image model for `refs` (default raea gen image's). |
| `--name` | `KIT` | The kit's folder name for `kit` (default the brief's directory name). |
| `--no-review` | – | `plan` without the blockout's `raea render --review` sheets. |
| `--only` | `ID,...` | `check`: only these checks. Otherwise only these objects (refs, gen, pick-sheet, prep) or shots (framing), by id or name. |
| `--out` | `DIR` | Where the sheet or chart is written (default the job's review/). |
| `--to` | `FOLDER` | Where `kit` lands the components (default the workspace's shared/components/KIT). |
| `--tripo` | `M` | The Tripo model for `gen` (default `tripo:H3.1`). |
<!-- generated:end -->