diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-07-01 21:29:18 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-07-02 19:46:46 +0300 |
commit | 145d3540b3e2dafa9351c79a463c230304ce0ae5 (patch) | |
tree | b0a61d60e4ac9485d856c329381f8f4e4c2004b2 /release/scripts/startup/bl_ui/space_sequencer.py | |
parent | 2723d107046846bc6ab2ae458c3371cdb7c441bf (diff) |
Text effect strip for sequencer.
Is pretty much what it says :)
Easy subtitles for everyone!
Supports size, positioning,
a cheap shadow effect (probably will need more work),
and autocentering on x axis.
Now you can go wild with long spanish names
in your soap opera videos.
Will probably be refined as days go by,
but at least it's now ready for testing.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_sequencer.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index 43224412009..5291ff4bb3d 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -333,6 +333,7 @@ class SEQUENCER_MT_add_effect(Menu): layout.operator("sequencer.effect_strip_add", text="Over Drop").type = 'OVER_DROP' layout.operator("sequencer.effect_strip_add", text="Wipe").type = 'WIPE' layout.operator("sequencer.effect_strip_add", text="Glow").type = 'GLOW' + layout.operator("sequencer.effect_strip_add", text="Text").type = 'TEXT' layout.operator("sequencer.effect_strip_add", text="Transform").type = 'TRANSFORM' layout.operator("sequencer.effect_strip_add", text="Color").type = 'COLOR' layout.operator("sequencer.effect_strip_add", text="Speed Control").type = 'SPEED' @@ -537,7 +538,7 @@ 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', 'GAUSSIAN_BLUR'} + 'MULTICAM', 'GAUSSIAN_BLUR', 'TEXT'} def draw(self, context): layout = self.layout @@ -628,6 +629,17 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel): for i in range(1, strip.channel): row.operator("sequencer.cut_multicam", text="%d" % i).camera = i + elif strip.type == 'TEXT': + col = layout.column() + col.prop(strip, "text") + col.prop(strip, "text_size") + col.prop(strip, "use_shadow") + col.prop(strip, "use_autocenter") + row = layout.row(align=True) + if not strip.use_autocenter: + row.prop(strip, "xpos") + row.prop(strip, "ypos") + col = layout.column(align=True) if strip.type == 'SPEED': col.prop(strip, "multiply_speed") @@ -638,7 +650,7 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel): elif strip.type == 'GAUSSIAN_BLUR': col.prop(strip, "size_x") col.prop(strip, "size_y") - + class SEQUENCER_PT_input(SequencerButtonsPanel, Panel): bl_label = "Strip Input" |