Sequencer: support for masked color balance
This implements option which could be used to color balance only specified area. Currently done by adding Mask input to Adjustment effect. Affects on color balance and multiply settings. Supporting masked saturation control is in the list, not supported in this commit. Also show value slider in the right of color wheel.
This commit is contained in:
@@ -423,18 +423,24 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel):
|
||||
return strip.type in {'ADD', 'SUBTRACT', 'ALPHA_OVER', 'ALPHA_UNDER',
|
||||
'CROSS', 'GAMMA_CROSS', 'MULTIPLY', 'OVER_DROP',
|
||||
'WIPE', 'GLOW', 'TRANSFORM', 'COLOR', 'SPEED',
|
||||
'MULTICAM'}
|
||||
'MULTICAM', 'ADJUSTMENT'}
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
sequencer = context.scene.sequence_editor
|
||||
strip = act_strip(context)
|
||||
|
||||
if strip.input_count > 0:
|
||||
col = layout.column()
|
||||
col.prop(strip, "input_1")
|
||||
if strip.input_count > 1:
|
||||
col.prop(strip, "input_2")
|
||||
|
||||
if strip.is_supports_mask:
|
||||
col = layout.column()
|
||||
col.prop_search(strip, "input_mask", sequencer, "sequences")
|
||||
|
||||
if strip.type == 'COLOR':
|
||||
layout.prop(strip, "color")
|
||||
|
||||
@@ -765,21 +771,21 @@ class SEQUENCER_PT_filter(SequencerButtonsPanel, Panel):
|
||||
if strip.use_color_balance and strip.color_balance: # TODO - need to add this somehow
|
||||
col = layout.column()
|
||||
col.label(text="Lift:")
|
||||
col.template_color_wheel(strip.color_balance, "lift", value_slider=False, cubic=True)
|
||||
col.template_color_wheel(strip.color_balance, "lift", value_slider=True, cubic=True)
|
||||
row = col.row()
|
||||
row.prop(strip.color_balance, "lift", text="")
|
||||
row.prop(strip.color_balance, "invert_lift", text="Inverse")
|
||||
|
||||
col = layout.column()
|
||||
col.label(text="Gamma:")
|
||||
col.template_color_wheel(strip.color_balance, "gamma", value_slider=False, lock_luminosity=True, cubic=True)
|
||||
col.template_color_wheel(strip.color_balance, "gamma", value_slider=True, lock_luminosity=True, cubic=True)
|
||||
row = col.row()
|
||||
row.prop(strip.color_balance, "gamma", text="")
|
||||
row.prop(strip.color_balance, "invert_gamma", text="Inverse")
|
||||
|
||||
col = layout.column()
|
||||
col.label(text="Gain:")
|
||||
col.template_color_wheel(strip.color_balance, "gain", value_slider=False, lock_luminosity=True, cubic=True)
|
||||
col.template_color_wheel(strip.color_balance, "gain", value_slider=True, lock_luminosity=True, cubic=True)
|
||||
row = col.row()
|
||||
row.prop(strip.color_balance, "gain", text="")
|
||||
row.prop(strip.color_balance, "invert_gain", text="Inverse")
|
||||
|
||||
Reference in New Issue
Block a user