set_layout. Every change is an ordinary edit: a new revision, in history, with Undo.
Presets
GET /layouts (vidjutsu layouts) lists the six built-in presets and the ones saved to your account, the same list the editor shows:
Each preset has
id, name, builtin and parts: a screen and a camera layout.
Apply one
from and to to lay out the whole video. The answer is the edit (like POST /projects/{project}/edits answers) plus layout (the preset) and applied, which track got which part. Tracks draw bottom to top, so if the camera’s track is under the screen’s, the answer also has a warning: the screen hides the camera wherever it covers it. Keep the camera on a higher track, for example the screen on v1 and the camera on v2.
Which track is the screen and which the camera? From the files’ kinds in the shot list (screen, camera); otherwise the lowest video track is the screen and the next one the camera. Send screen_track and camera_track to choose. Send expected_head to make sure nobody edited first.
The CLI: vidjutsu layout launch-film circle_corner --from 12.5 --to 40. The SDK: applyLayout(project, preset, {from, to}). MCP: apply_layout.
In the editor, the same presets sit under the player. Drag and resize the camera on the video, pick a shape, then use it for the selection or the whole video, or save it as a preset. A shot in the shot list can name the layout to record it with.
Save your own
replaced: true); built-in names are taken. DELETE /layouts/{layout_id} deletes a saved preset. The CLI: vidjutsu layouts save preset.json and vidjutsu layouts delete <layout_id>.
Layout fields
A layout is a place on a 1000x1000 canvas, whatever the output size:Place a track yourself
A preset is just twoset_layout operations. Send your own to place any video track over a range:
v2 sits over the screen on v1, and a motion graphic on v3 plays over both. When the same clip continues into a new layout, it glides there smoothly unless the new layout has cut: true.