FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
Merge pull request #44 from punkhop/fix/unknown-track-is-an-error
Brandon Thomasd886d2f3220e
diff --cc docs/agents.mdindex 8e462114f,0d3b7856e..fcd391068--- a/docs/agents.md+++ b/docs/agents.md@@@ -133,15 -89,11 +133,18 @@@ Notes- Time is in ticks (254 016 000 000 per second). Commands also accept `seconds`, `frame` or`timecode`.+ - 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 is+ an "invalid parameters" error, never a different 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.- Without a window, `filmcraft-cli run script.jsonl` (lines of `{"id":"…","params":{…}}`) runs the