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
t
is withinA
,A
will be returned. Ift
is withinG1
orG2
,B
will be returned.- Parameters:
in_stack (Stack) – Stack
t (RationalTime) – Time
- Returns:
Top clip
- Return type: