formating

This commit is contained in:
j 2023-10-29 19:51:26 +01:00
parent 441ebfa05c
commit 120e7895b0

View file

@ -308,12 +308,12 @@ def render_all(options):
scene = compose(fragment['clips'], target=target, base=base, voice_over=fragment['voice_over']) scene = compose(fragment['clips'], target=target, base=base, voice_over=fragment['voice_over'])
scene_duration = get_scene_duration(scene) scene_duration = get_scene_duration(scene)
print("%s %s -> %s (%s)" % (name, target, scene_duration, fragment_target)) print("%s %6.3f -> %6.3f (%6.3f)" % (name, target, scene_duration, fragment_target))
position += scene_duration position += scene_duration
target_position += fragment_target target_position += fragment_target
if position > target_position: if position > target_position:
target = fragment_target - (position-target_position) target = fragment_target - (position-target_position)
print("adjusting target from", fragment_target, target) print("adjusting target duration for next fragment: %6.3f -> %6.3f" % (fragment_target, target))
elif position < target_position: elif position < target_position:
target = target + 0.1 * fragment_target target = target + 0.1 * fragment_target