O
Sections
Every group

Edit

The ten edit operations, as an editor's tools spell them.

Symbols in this group are spelled otio_edit_…. An SDK drops that prefix, which is why the name beside each call is the short one.

fill

method

Drops an item into a gap on a track, fitting it as the reference point says.

OtioStatus otio_edit_fill(
    OtioDocument *target,
    OtioNode item,
    OtioNode track,
    OtioRationalTime track_time,
    OtioReferencePoint reference_point,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
itemnodeinput
tracknodeinput
track_timeOtioRationalTimeinput
reference_pointOtioReferencePointinput
out_errortextwhy the call failed, or null to skip it

insert

method

Inserts an item at an instant, pushing what follows later.

OtioStatus otio_edit_insert(
    OtioDocument *target,
    OtioNode item,
    OtioNode composition,
    OtioRationalTime time,
    bool remove_transitions,
    OtioNode fill_template,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
itemnodeinput
compositionnodeinput
timeOtioRationalTimeinput
remove_transitionsboolinput
fill_template ?nodeinput
out_errortextwhy the call failed, or null to skip it

overwrite

method

Lays an item over a span of a composition, replacing what was there.

`fill_template` is the item to fill any gap the edit opens with, or `otio_node_none` for a plain gap.

OtioStatus otio_edit_overwrite(
    OtioDocument *target,
    OtioNode item,
    OtioNode composition,
    OtioTimeRange range,
    bool remove_transitions,
    OtioNode fill_template,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
itemnodeinput
compositionnodeinput
rangeOtioTimeRangeinput
remove_transitionsboolinput
fill_template ?nodeinput
out_errortextwhy the call failed, or null to skip it

remove

method

Takes whatever sits at an instant out of a composition.

With `fill` set, a gap takes its place; without, what follows moves up.

OtioStatus otio_edit_remove(
    OtioDocument *target,
    OtioNode composition,
    OtioRationalTime time,
    bool fill,
    OtioNode fill_template,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
compositionnodeinput
timeOtioRationalTimeinput
fillboolinput
fill_template ?nodeinput
out_errortextwhy the call failed, or null to skip it

ripple

method

Moves an item's in and out points, sliding everything after it.

OtioStatus otio_edit_ripple(
    OtioDocument *target,
    OtioNode item,
    OtioRationalTime delta_in,
    OtioRationalTime delta_out,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
itemnodeinput
delta_inOtioRationalTimeinput
delta_outOtioRationalTimeinput
out_errortextwhy the call failed, or null to skip it

roll

method

Moves the cut between an item and its neighbour.

OtioStatus otio_edit_roll(
    OtioDocument *target,
    OtioNode item,
    OtioRationalTime delta_in,
    OtioRationalTime delta_out,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
itemnodeinput
delta_inOtioRationalTimeinput
delta_outOtioRationalTimeinput
out_errortextwhy the call failed, or null to skip it

slice

method

Cuts whatever sits at an instant into two.

OtioStatus otio_edit_slice(
    OtioDocument *target,
    OtioNode composition,
    OtioRationalTime time,
    bool remove_transitions,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
compositionnodeinput
timeOtioRationalTimeinput
remove_transitionsboolinput
out_errortextwhy the call failed, or null to skip it

slide

method

Moves an item along its track, taking the time from its neighbours.

OtioStatus otio_edit_slide(
    OtioDocument *target,
    OtioNode item,
    OtioRationalTime delta,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
itemnodeinput
deltaOtioRationalTimeinput
out_errortextwhy the call failed, or null to skip it

slip

method

Moves the media inside an item without moving the item.

OtioStatus otio_edit_slip(
    OtioDocument *target,
    OtioNode item,
    OtioRationalTime delta,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
itemnodeinput
deltaOtioRationalTimeinput
out_errortextwhy the call failed, or null to skip it

trim

method

Moves an item's in and out points without moving its neighbours.

OtioStatus otio_edit_trim(
    OtioDocument *target,
    OtioNode item,
    OtioRationalTime delta_in,
    OtioRationalTime delta_out,
    OtioNode fill_template,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
itemnodeinput
delta_inOtioRationalTimeinput
delta_outOtioRationalTimeinput
fill_template ?nodeinput
out_errortextwhy the call failed, or null to skip it