From dd96af0c223cac39e9895ec5b71c6fa0be00891f Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Sun, 28 Feb 2021 17:38:39 -0500 Subject: [PATCH] fixed hold for large values --- auto_editor/cutting.py | 2 +- auto_editor/renderVideo.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/auto_editor/cutting.py b/auto_editor/cutting.py index 90075130b..315c4243e 100644 --- a/auto_editor/cutting.py +++ b/auto_editor/cutting.py @@ -422,7 +422,7 @@ def applyZooms(cmdZooms, audioData, sampleRate, fps, log): inter = ms[6] if(len(ms) > 7): - hold = int(ms[7]) + hold = ms[7] if(len(ms) > 8): log.error('Too many comma arguments for zoom option.') diff --git a/auto_editor/renderVideo.py b/auto_editor/renderVideo.py index 72e1c31a3..e4cba2a4b 100644 --- a/auto_editor/renderVideo.py +++ b/auto_editor/renderVideo.py @@ -193,11 +193,13 @@ def values(val, log, _type, totalFrames, width, height): z[0] = values(z[0], log, int, totalFrames, width, height) z[1] = values(z[1], log, int, totalFrames, width, height) - if(z[7] is None): + if(z[7] is not None): # hold value + z[7] = values(z[7], log, int, totalFrames, width, height) + + if(z[7] is None or z[7] > z[1]): zoom_sheet[z[0]:z[1]] = interpolate(z[2], z[3], z[1] - z[0], log, method=z[6]) else: - z[7] = values(z[7], log, int, totalFrames, width, height) zoom_sheet[z[0]:z[0]+z[7]] = interpolate(z[2], z[3], z[7], log, method=z[6]) zoom_sheet[z[0]+z[7]:z[1]] = z[3]