Renovating this code
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user