move bpy.load_scripts --> bpy.utils.load_scripts

added sequencer strip length display in seconds
This commit is contained in:
Campbell Barton
2010-01-28 11:48:06 +00:00
parent 72cb4548a7
commit 18ea9b6443
3 changed files with 80 additions and 72 deletions

View File

@@ -310,7 +310,7 @@ class SEQUENCER_PT_edit(SequencerButtonsPanel):
def draw(self, context):
layout = self.layout
render_data = context.scene.render_data
strip = act_strip(context)
split = layout.split(percentage=0.3)
@@ -344,7 +344,9 @@ class SEQUENCER_PT_edit(SequencerButtonsPanel):
col.enabled = not strip.lock
col.prop(strip, "channel")
col.prop(strip, "start_frame")
col.prop(strip, "length")
subrow = col.split(percentage=0.66)
subrow.prop(strip, "length")
subrow.label(text="%.2f sec" % (strip.length / (render_data.fps / render_data.fps_base)))
col = layout.column(align=True)
col.label(text="Offset:")