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:
authorCampbell Barton <ideasman42@gmail.com>2009-06-10 10:02:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-06-10 10:02:08 +0400
commit872767f5c76db75797344b84c056d6cef28248e8 (patch)
treee9c5dfca7b30b20964123a6b24f062696bd05ac9 /release/ui/space_sequencer.py
parentb9ef34b6e5c8455638d1e88211e536d0009b3bfa (diff)
RNA wrap give_stripelem as getStripElem for sequence strips so the panel can display the current frames filename.
Diffstat (limited to 'release/ui/space_sequencer.py')
-rw-r--r--release/ui/space_sequencer.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/release/ui/space_sequencer.py b/release/ui/space_sequencer.py
index c783fd27b98..c4521bfc140 100644
--- a/release/ui/space_sequencer.py
+++ b/release/ui/space_sequencer.py
@@ -391,7 +391,7 @@ class SEQUENCER_PT_input(SequencerButtonsPanel):
if not strip:
return False
- return strip.type in ('MOVIE', 'IMAGE', 'SCENE', 'META')
+ return strip.type in ('MOVIE', 'IMAGE', 'SOUND')
def draw(self, context):
layout = self.layout
@@ -404,12 +404,15 @@ class SEQUENCER_PT_input(SequencerButtonsPanel):
sub = split.column()
sub.itemR(strip, "directory", text="")
- # TODO - get current element!
+ # Current element for the filename
split = layout.split(percentage=0.3)
sub = split.column()
sub.itemL(text="File Name:")
- sub = split.column()
- sub.itemR(strip.elements[0], "filename", text="")
+ sub = split.column()
+
+ elem = strip.getStripElem(context.scene.current_frame)
+ if elem:
+ sub.itemR(elem, "filename", text="") # strip.elements[0] could be a fallback
"""
layout.itemR(strip, "use_crop")