Skip to content

FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust

Merge pull request #60 from punkhop/fix/place-on-a-sound-track

Brandon Thomas51026bd2b2c7
diff --cc docs/agents.md
index fcd391068,332f115ab..7479b4ad4
--- a/docs/agents.md
+++ b/docs/agents.md
@@@ -136,15 -92,10 +136,17 @@@ 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 is
an "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.
- Without a window, `filmcraft-cli run script.jsonl` (lines of `{"id":"…","params":{…}}`) runs the