Expand description
The edit operations remove_ranges, split_at and bake, which apply data to a project once.
Operations are named for primitives, never for features, and are pure: a project and a
request in, a project and a report out, with no I/O. Clips are split so each part continues its
source and time map, keyframes move with their clip or transition, timeline-anchored data and
caption cues are cut and shifted, transitions whose cut point is removed are removed, and mattes
and via bindings follow the part beside them or the edit is refused. Bus curves keep their
shape across a cut. Before editing, split_at leaves out cuts it cannot make exactly and
remove_ranges refuses them, so a valid request never ends as an invalid result. Kept moments
render as before except for reversed parts off the frame grid and the sound at a loop wrap a cut
turns into a part boundary. The result validates and is canonical.
Structs§
- Created
- A clip an operation created by cutting another.
- DataRef
- A data set an operation reads.
- Edit
Failure - Why
apply_jsongave no result. - Edit
Report - What an operation changed, so a caller can show and select it.
- Edited
Json - An operation’s result as canonical JSON text.
- Moved
- A kept stretch of timeline that moved.
- Range
List - Ranges given in the request.
- RawRange
- A range as written, before its order is checked.
- Skipped
- A cut
split_atleft out. - Time
List - Times given in the request.
Enums§
- Bake
Target - One value or caption track to bake.
- Edit
Error - Why an operation refused.
- Edit
Request - One edit operation, applied to a project once.
- Ranges
- Ranges an operation reads.
- Ripple
- What closes the gaps a removal leaves.
- Skip
Reason - Why
split_atleft a cut out. - Target
- The clips an operation works on.
- Times
- Times an operation reads.
Functions§
- apply
- Applies
requesttoproject. - apply_
json - Applies the request
request_jsonto the projectproject_json.