opentimelineio.algorithms.stack_algo¶
Algorithms for stack objects.
- opentimelineio.algorithms.stack_algo.top_clip_at_time(in_stack, t)¶
Return the topmost visible child that overlaps with time
t.Example:
tr1: G1, A, G2 tr2: [B------] G1, and G2 are gaps, A and B are clips.
If
tis withinA,Awill be returned. Iftis withinG1orG2,Bwill be returned.- Parameters
in_stack (Stack) – Stack
t (RationalTime) – Time
- Returns
Top clip
- Return type