Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
TL11b: raea/editor taught in the footage guide (a composition recut as data: fromRender, applyAll, segmentsOf, and what segments can't say), its page's summary and intro written for a reader
shinyobjectz9a93709831ab
diff --git a/docs/manual/reference/sdk/editor.md b/docs/manual/reference/sdk/editor.mdindex b662d504..88130c86 100644--- a/docs/manual/reference/sdk/editor.md+++ b/docs/manual/reference/sdk/editor.md@@ -1,11 +1,19 @@---title: "raea/editor"-summary: "the timeline the feed edits a film, a scene or a sound on, as data. Tracks, clips, keys and markers; every edit an operation with its inverse (apply); a composition's sequences read into it (sequenceRows) and the edits written back as SeqEdit; easings, speed curves, snapping, the frame store's keys and what a plugin adds. No React and no DOM: an agent's script, the app's host and a test use the same model the app's strip does."+summary: "The timeline the feed edits a film, a scene or a sound on, as data: tracks, clips, keys and markers, every edit an operation with its inverse, a film's scenes read in (fromRender) and its cut read back out as segments (segmentsOf). No React and no DOM: an agent's script, the app's host and a test use the same model the app's timeline does."order: 48sources: ["sdk/raea/src/editor.ts"]----the timeline the feed edits a film, a scene or a sound on, as data. Tracks, clips, keys and markers; every edit an operation with its inverse (apply); a composition's sequences read into it (sequenceRows) and the edits written back as SeqEdit; easings, speed curves, snapping, the frame store's keys and what a plugin adds. No React and no DOM: an agent's script, the app's host and a test use the same model the app's strip does.+The timeline the feed edits a film, a scene or a sound on, as data. A `Timeline` holds tracks of clips in whole+frames, with keys, markers and transitions; `apply` and `applyAll` make an edit and hand back its inverse, so every+change can be undone; the main track's magnet, snapping and linkage behave as the feed's timeline does. A film's+scenes are read in with `fromRender` and its cut read back out with `segmentsOf`, as a composition's+`edit={{ segments }}` takes it; a composition's sequences are read in with `fromSequences`, and `seqEdits` says what+an operation does to them. Easings, speed curves, snapping, the frame store's keys and what a plugin adds are here+too. No React and no DOM: an agent's script, the app's host and a test use the same model the app's timeline does.+See [the example](https://github.com/shinyobjectz/raea/blob/main/docs/manual/examples/edits.tsx) for a timeline+built, edited and undone.<!-- generated:begin by tools/manual-ref/sdk.ts from the SDK's exports and doc comments; edit outside this block -->diff --git a/docs/manual/reference/sdk/index.md b/docs/manual/reference/sdk/index.mdindex 359bef66..da06ec04 100644--- a/docs/manual/reference/sdk/index.md+++ b/docs/manual/reference/sdk/index.md@@ -61,7 +61,7 @@ Footage, pictures, sound, words and colour, and the timeline they are edited on.| [`raea/image`](image.md) | Pictures on the page and in the world, and texture atlases packed from them. | 3 components, 1 class, 5 types || [`raea/asset`](asset.md) | Files the project holds and assets made for it: staticFile, generated sound and music, and glTF bytes. | 9 functions, 1 value, 8 types || [`raea/color`](color.md) | Bevy's colour types: Srgba, LinearRgba, Hsla, Oklab, Oklch and the rest, with their conversions. | 2 functions, 7 classes |-| [`raea/editor`](editor.md) | the timeline the feed edits a film, a scene or a sound on, as data. Tracks, clips, keys and markers; every edit an operation with its inverse (apply); a composition's sequences read into it (sequenceRows) and the edits written back as SeqEdit; easings, speed curves, snapping, the frame store's keys and what a plugin adds. No React and no DOM: an agent's script, the app's host and a test use the same model the app's strip does. | 50 functions, 14 values, 31 types |+| [`raea/editor`](editor.md) | The timeline the feed edits a film, a scene or a sound on, as data: tracks, clips, keys and markers, every edit an operation with its inverse, a film's scenes read in (fromRender) and its cut read back out as segments (segmentsOf). No React and no DOM: an agent's script, the app's host and a test use the same model the app's timeline does. | 50 functions, 14 values, 31 types |## 3Ddiff --git a/sdk/guides/craft/motion/footage.md b/sdk/guides/craft/motion/footage.mdindex f1eede75..29ede0f2 100644--- a/sdk/guides/craft/motion/footage.md+++ b/sdk/guides/craft/motion/footage.md@@ -39,6 +39,12 @@An effect of your own is its `parts`, CSS filter functions from amount 0 to amount 1:`<Effect kind="dream" parts={[["blur", 0, 6, "px"], ["saturate", 1, 1.6]]} />` (blur, brightness, contrast,grayscale, hue-rotate, invert, saturate, sepia).+- To recut a composition as data rather than by hand, use `raea/editor`, the model behind the feed's timeline.+ `fromRender({ frames, fps, cuts })` makes its scenes clips of a main track, `applyAll(t, ops)` makes the edits+ (`split`, `move`, `trim`, `remove`) and hands back each one's inverse, so a change can be undone, and+ `segmentsOf(t)` is the cut as `<Composition edit={{ segments }}>` takes it. The main track's magnet closes every+ gap, as the feed's does. Segments say only which source frames play in which order: a speed or a freeze on a clip+ is not in them. docs/manual/examples/edits.tsx builds a timeline, edits it and undoes it.- Use `<Img src>` for stills. The frame waits until the image has loaded. An image whose file isn't there fails therender with "missing image: PATH"; a plain App prints that line and draws nothing.diff --git a/sdk/raea/src/editor.ts b/sdk/raea/src/editor.tsindex f47d2f61..fa1e40cc 100644--- a/sdk/raea/src/editor.ts+++ b/sdk/raea/src/editor.ts@@ -1,6 +1,7 @@// raea/editor (raea's own; Bevy has no timeline editor): docs/timeline.feature TL11b. The timeline the feed edits a film, a scene or a sound on,// as data. Tracks, clips, keys and markers; every edit an operation with its inverse (apply); a composition's-// sequences read into it (sequenceRows) and the edits written back as SeqEdit; easings, speed curves, snapping, the+// sequences read into it (fromSequences) and an operation turned into the edits to write back (seqEdits); a film's+// scenes read into it (fromRender) and its cut read back out as segments (segmentsOf); easings, speed curves, snapping, the// frame store's keys and what a plugin adds. No React and no DOM: an agent's script, the app's host and a test use// the same model the app's strip does.export * from "@raea/timeline";