Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Mueller <nexyon@gmail.com>2009-08-28 16:27:29 +0400
committerJoerg Mueller <nexyon@gmail.com>2009-08-28 16:27:29 +0400
commit6a8020b9c6693bdb14885914e8688847e2d11629 (patch)
tree65c3c899e8acb01ae79b111ce24baaee0f53ef9f /release
parent3ac11df33bf47d98e1a945beaea99e9a98f716d2 (diff)
First try in sound UI for the sequencer.
Diffstat (limited to 'release')
-rw-r--r--release/ui/space_sequencer.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/release/ui/space_sequencer.py b/release/ui/space_sequencer.py
index 1498c37d761..6b86ea5dabe 100644
--- a/release/ui/space_sequencer.py
+++ b/release/ui/space_sequencer.py
@@ -455,6 +455,29 @@ class SEQUENCER_PT_input(SequencerButtonsPanel):
col.itemR(strip, "animation_start_offset", text="Start")
col.itemR(strip, "animation_end_offset", text="End")
+class SEQUENCER_PT_sound(SequencerButtonsPanel):
+ __label__ = "Sound"
+
+ def poll(self, context):
+ if context.space_data.display_mode != 'SEQUENCER':
+ return False
+
+ strip = act_strip(context)
+ if not strip:
+ return False
+
+ return strip.type in ('SOUND')
+
+ def draw(self, context):
+ layout = self.layout
+
+ strip = act_strip(context)
+
+ layout.template_ID(strip, "sound", new="sound.open")
+
+ layout.itemR(strip.sound, "filename")
+ layout.itemR(strip.sound, "caching")
+
class SEQUENCER_PT_filter(SequencerButtonsPanel):
__label__ = "Filter"
@@ -558,6 +581,7 @@ bpy.types.register(SEQUENCER_MT_strip)
bpy.types.register(SEQUENCER_PT_edit) # sequencer panels
bpy.types.register(SEQUENCER_PT_effect)
bpy.types.register(SEQUENCER_PT_input)
+bpy.types.register(SEQUENCER_PT_sound)
bpy.types.register(SEQUENCER_PT_filter)
bpy.types.register(SEQUENCER_PT_proxy)