Skip to content

Commit

Permalink
More comments and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ssteinbach committed Jun 22, 2021
1 parent ad0fa89 commit 3f8e914
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions examples/build_simple_timeline.py
Expand Up @@ -63,14 +63,18 @@ def main():
tl.tracks.append(tr)

# build the clips
for i, (fname, available_range) in enumerate(FILE_LIST):
for i, (fname, available_range_from_list) in enumerate(FILE_LIST):
ref = otio.schema.ExternalReference(
target_url=fname,
available_range=available_range
# available range is the content available for editing
available_range=available_range_from_list
)

# attach the reference to the clip
cl = otio.schema.Clip(name="Clip{}".format(i + 1), media_reference=ref)
cl = otio.schema.Clip(
name="Clip{}".format(i + 1),
media_reference=ref
)

# put the clip into the track
tr.append(cl)
Expand Down

0 comments on commit 3f8e914

Please sign in to comment.