[Durian-svn] [6608] fixes for color balance
campbell
institute at blender.org
Thu Jul 8 19:10:21 CEST 2010
Revision: 6608
https://blenderinstitute.dyndns.org/durian-svn/?do=log&project=durian&path=/&rev=6608
Author: campbell
Date: 2010-07-08 19:10:21 +0200 (Thu, 08 Jul 2010)
Log Message:
-----------
fixes for color balance
Modified Paths:
--------------
pro/scripts/utilities/sequencer_switch_finals.py
Modified: pro/scripts/utilities/sequencer_switch_finals.py
===================================================================
--- pro/scripts/utilities/sequencer_switch_finals.py 2010-07-08 17:03:06 UTC (rev 6607)
+++ pro/scripts/utilities/sequencer_switch_finals.py 2010-07-08 17:10:21 UTC (rev 6608)
@@ -86,13 +86,13 @@
if(tot > len(exrs)):
if DEBUG:
print("%s missing %d frames" % (base_name, tot - len(exrs)))
- return "", []
+ return "", [], frame_start, frame_end
# print("PATH:", exr_path)
- return exr_path, exrs
+ return exr_path, exrs, frame_start, frame_end
else:
print("\texr path missing: %s" % exr_path)
- return "", []
+ return "", [], -1, -1
def convert_exr_to_avi(basepath):
@@ -145,7 +145,7 @@
filepath = seq.filepath
- image_dir, image_files = convert_avi_to_exr(filepath)
+ image_dir, image_files, frame_start, frame_end = convert_avi_to_exr(filepath)
if not image_dir:
MISSING_EXRS.append(filepath)
@@ -159,9 +159,12 @@
# a few things we want to swap back
seq.use_color_balance = seq_new.use_color_balance
- seq.color_balance.lift = seq_new.color_balance.lift
- seq.color_balance.gain = seq_new.color_balance.gain
- seq.color_balance.gamma = seq_new.color_balance.gamma
+ if seq.use_color_balance and seq.color_balance and seq_new.color_balance:
+ # print(seq.color_balance)
+ # print(seq_new.color_balance)
+ seq.color_balance.lift = seq_new.color_balance.lift
+ seq.color_balance.gain = seq_new.color_balance.gain
+ seq.color_balance.gamma = seq_new.color_balance.gamma
# XXX, context only
for s in bpy.context.sequences:
@@ -169,7 +172,7 @@
seq_new.selected = True
bpy.ops.sequencer.delete()
else:
- BAD_AVI_LENGTHS.append((filepath, "images:", str(len(image_files)), "movie:", str(seq.frame_length)))
+ BAD_AVI_LENGTHS.append((filepath, "images:", str(len(image_files)), "movie:", str(seq.frame_length), str((frame_start, frame_end))))
# report errors
print("\n")
More information about the Durian-svn
mailing list