FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
Merge pull request #45 from punkhop/fix/move-linked-partners
Brandon Thomas475c2946787e
diff --cc docs/agents.mdindex 7479b4ad4,7535a7808..c64eef831--- a/docs/agents.md+++ b/docs/agents.md@@@ -136,19 -92,13 +136,22 @@@ Notes- A track parameter (`track`, `audioTrack`) is a track id or a name such as `"V1"` / `"A2"`.Leaving it out picks the command's default track; naming a track the sequence does not have isan "invalid parameters" error, never a different track.+ In `timeline.place`, `track` is where the picture goes and `audioTrack` where the sound goes;+ an audio track given as `track` places the sound alone, on that track.- `engine.execute` also runs UI-only commands (`tool.razor`, `playback.toggle`,`window.workspace.color`, `window.panel.<name>`).+- A command that works on the selection is disabled ("no clips selected", "select a clip in the+ Project panel") until something is selected, unless the call names its targets under a key the+ command documents (`clips` / `clip` for timeline clips, `items` / `item` for project items):+ `clip.replaceFromBin {"clips":[12],"item":4}` runs with nothing selected and leaves the+ selection alone. Only the selection condition is answered by the named targets; every other+ one (an open sequence, a filled clipboard, the right kind of clip) still applies, and ids of+ nothing do not count. `command_list` / `engine.commands` keep reporting the selection's state.- Element ids come from the previous frame. If an element is missing right after a layout change,the app retries on later frames before giving up.+ - `timeline.move` takes linked partners along while Linked Selection is on: moving a picture+ clip moves its sound by the same offset (pass `"linked": false` to move only the listed clips).+ It returns `{"moved": [ids]}`, every clip that moved.- Without a window, `filmcraft-cli run script.jsonl` (lines of `{"id":"…","params":{…}}`) runs thesame commands headlessly. See §2b for the rest of the CLI.