commit d7f5be6c86db6b0be90a953b54ed8440a873f0d3
parent 88d47f10cf1023719391c837b30c8279fb2fd69e
Author: rob <rob@tarina.org>
Date: Sat, 20 Apr 2024 16:25:32 +0100
trim also if only in point selected
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gonzopi.py b/gonzopi.py
@@ -443,7 +443,7 @@ def main():
if os.path.exists(foldername+'dub') == True:
print('trim dubs here')
elif trim[0] >= trim[1]:
- trim = [0,0]
+ trim = [trim[0],0]
elif trim[0] != 0 and trim[1] != 0:
take = counttakes(filmname, filmfolder, scene, shot)+1
trim_filename = foldername + 'take' + str(take).zfill(3)
@@ -455,7 +455,7 @@ def main():
take = counttakes(filmname, filmfolder, scene, shot)+1
trim_filename = foldername + 'take' + str(take).zfill(3)
videotrim(foldername + filename, trim_filename, 'end', trim[1])
- elif trim[1] == 0 and trim[0] != 0:
+ if trim[0] != 0 and trim[1] == 0:
take = counttakes(filmname, filmfolder, scene, shot)+1
trim_filename = foldername + 'take' + str(take).zfill(3)
videotrim(foldername + filename, trim_filename, 'beginning', trim[0])