Brought back secondary input filtering, thereby
authorPeter Schlaile <peter@schlaile.de>
Sun, 18 Apr 2010 13:05:17 +0000 (13:05 +0000)
committerPeter Schlaile <peter@schlaile.de>
Sun, 18 Apr 2010 13:05:17 +0000 (13:05 +0000)
fixing
[#21014] SEQUENCER: Can no longer apply colour balance filter to colour effect strip.

Also: reordered some UI elements so that
geometry, time and color modifications are grouped together.

release/scripts/ui/space_sequencer.py
source/blender/makesrna/intern/rna_sequencer.c

index 5922d84e1e24dede8f5bfb27f6b83da54c321e15..eb0b7374895b33959df35bb97abe1bec0eb2ea93 100644 (file)
@@ -497,7 +497,11 @@ class SEQUENCER_PT_input(SequencerButtonsPanel):
         if not strip:
             return False
 
-        return strip.type in ('MOVIE', 'IMAGE')
+        return strip.type in ('MOVIE', 'IMAGE', 'SCENE', 'META',
+                              'ADD', 'SUBTRACT', 'ALPHA_OVER', 'ALPHA_UNDER',
+                              'CROSS', 'GAMMA_CROSS', 'MULTIPLY', 'OVER_DROP',
+                              'PLUGIN',
+                              'WIPE', 'GLOW', 'TRANSFORM', 'COLOR', 'SPEED')
 
     def draw_filename(self, context):
         pass
@@ -590,6 +594,21 @@ class SEQUENCER_PT_input_image(SEQUENCER_PT_input):
             col = split.column()
             col.prop(elem, "filename", text="") # strip.elements[0] could be a fallback
 
+class SEQUENCER_PT_input_secondary(SEQUENCER_PT_input):
+    bl_label = "Strip Input"
+
+    def poll(self, context):
+        if not self.has_sequencer(context):
+            return False
+
+        strip = act_strip(context)
+        if not strip:
+            return False
+
+        return strip.type in ('SCENE', 'META')
+
+    def draw_filename(self, context):
+        pass
 
 class SEQUENCER_PT_sound(SequencerButtonsPanel):
     bl_label = "Sound"
@@ -660,7 +679,11 @@ class SEQUENCER_PT_filter(SequencerButtonsPanel):
         if not strip:
             return False
 
-        return strip.type in ('MOVIE', 'IMAGE', 'SCENE', 'META')
+        return strip.type in ('MOVIE', 'IMAGE', 'SCENE', 'META',
+                              'ADD', 'SUBTRACT', 'ALPHA_OVER', 'ALPHA_UNDER',
+                              'CROSS', 'GAMMA_CROSS', 'MULTIPLY', 'OVER_DROP',
+                              'PLUGIN',
+                              'WIPE', 'GLOW', 'TRANSFORM', 'COLOR', 'SPEED')
 
     def draw(self, context):
         layout = self.layout
@@ -670,6 +693,14 @@ class SEQUENCER_PT_filter(SequencerButtonsPanel):
         col = layout.column()
         col.label(text="Video:")
         col.prop(strip, "strobe")
+
+        row = layout.row()
+        row.label(text="Flip:")
+        row.prop(strip, "flip_x", text="X")
+        row.prop(strip, "flip_y", text="Y")
+
+        col = layout.column()
+        col.prop(strip, "reverse_frames", text="Backwards")
         col.prop(strip, "de_interlace")
 
         col = layout.column()
@@ -678,12 +709,6 @@ class SEQUENCER_PT_filter(SequencerButtonsPanel):
         col.prop(strip, "premultiply")
         col.prop(strip, "convert_float")
 
-        col = layout.column()
-        col.label(text="Flip:")
-        col.prop(strip, "flip_x", text="X")
-        col.prop(strip, "flip_y", text="Y")
-        col.prop(strip, "reverse_frames", text="Backwards")
-
         layout.prop(strip, "use_color_balance")
         if strip.color_balance: # TODO - need to add this somehow
             row = layout.row()
@@ -766,6 +791,7 @@ classes = [
     SEQUENCER_PT_effect,
     SEQUENCER_PT_input_movie,
     SEQUENCER_PT_input_image,
+    SEQUENCER_PT_input_secondary,
     SEQUENCER_PT_sound,
     SEQUENCER_PT_scene,
     SEQUENCER_PT_filter,
index d99e590492037e4eea18daf03e7b8bf8b2afd1b9..2e199f7c895b8009bd640da71a1cb4df1537857f 100644 (file)
@@ -1028,6 +1028,7 @@ static void rna_def_effect(BlenderRNA *brna)
        RNA_def_struct_ui_text(srna, "Effect Sequence", "Sequence strip applying an effect on the images created by other strips");
        RNA_def_struct_sdna(srna, "Sequence");
 
+       rna_def_filter_video(srna);
        rna_def_proxy(srna);
 }