O
Sections
Every group

Track

A composition that lays its children end to end.

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

kind

getter

Returns what a track carries, such as `"Video"` or `"Audio"`.

OtioStatus otio_track_kind(
    const OtioDocument *source,
    OtioNode node_handle,
    OtioBuffer *out_kind,
    OtioBuffer *out_error);
ParameterTypeRole
source ?documentthe document, borrowed
node_handlenodewhat the call is about
out_kindtextwritten through, not read
out_errortextwhy the call failed, or null to skip it

new

constructor

Creates a track. `kind` may be null, which means `"Video"`, as upstream's default does.

OtioStatus otio_track_new(
    OtioDocument *target,
    const char *name,
    const char *kind,
    OtioNode *out_node,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
name ?textinput
kind ?textinput
out_nodenodewritten through, not read
out_errortextwhy the call failed, or null to skip it

set_kind

setter

Sets what a track carries.

OtioStatus otio_track_set_kind(
    OtioDocument *target,
    OtioNode node_handle,
    const char *kind,
    OtioBuffer *out_error);
ParameterTypeRole
targetdocumentthe document, changed
node_handlenodewhat the call is about
kindtextinput
out_errortextwhy the call failed, or null to skip it