opentimelineio.algorithms.timeline_algo¶
Algorithms for timeline objects.
- opentimelineio.algorithms.timeline_algo.timeline_trimmed_to_range(in_timeline, trim_range)¶
Returns a new timeline that is a copy of the in_timeline, but with items outside the trim_range removed and items on the ends trimmed to the trim_range.
Note
the timeline is never expanded, only shortened.
Please note that you could do nearly the same thing non-destructively by just setting the
Track
’s source_range but sometimes you want to really cut away the stuff outside and that’s what this function is meant for.