Renovating this code

This commit is contained in:
2025-11-05 19:58:51 -08:00
parent f7c9def9bf
commit 8964bb030b
4 changed files with 51 additions and 22 deletions

View File

@@ -105,6 +105,10 @@ def speaker_active_time_range(speaker) -> FrameInterval:
def speakers_by_min_distance(scene, speakers):
"""
Sorts a list of speaker objects in ascending order by their closest
approach to the camera. Objects that approach closest are sorted highest.
"""
def min_distance(speaker):
return closest_approach_to_camera(scene, speaker)[0]