1 # ##### BEGIN GPL LICENSE BLOCK #####
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 # ##### END GPL LICENSE BLOCK #####
21 from bpy.types import Header, Menu, Panel
24 def act_strip(context):
26 return context.scene.sequence_editor.active_strip
27 except AttributeError:
31 class SEQUENCER_HT_header(Header):
32 bl_space_type = 'SEQUENCE_EDITOR'
34 def draw(self, context):
37 st = context.space_data
39 row = layout.row(align=True)
42 if context.area.show_menus:
43 row.menu("SEQUENCER_MT_view")
45 if st.view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'}:
46 row.menu("SEQUENCER_MT_select")
47 row.menu("SEQUENCER_MT_marker")
48 row.menu("SEQUENCER_MT_add")
49 row.menu("SEQUENCER_MT_strip")
51 layout.prop(st, "view_type", expand=True, text="")
53 if st.view_type in {'PREVIEW', 'SEQUENCER_PREVIEW'}:
54 layout.prop(st, "display_mode", expand=True, text="")
56 if st.view_type == 'SEQUENCER':
57 row = layout.row(align=True)
58 row.operator("sequencer.copy", text="", icon='COPYDOWN')
59 row.operator("sequencer.paste", text="", icon='PASTEDOWN')
62 layout.operator("sequencer.refresh_all")
63 elif st.view_type == 'SEQUENCER_PREVIEW':
65 layout.operator("sequencer.refresh_all")
66 layout.prop(st, "display_channel", text="Channel")
68 layout.prop(st, "display_channel", text="Channel")
70 ed = context.scene.sequence_editor
72 row = layout.row(align=True)
73 row.prop(ed, "show_overlay", text="", icon='GHOST_ENABLED')
75 row.prop(ed, "overlay_frame", text="")
76 row.prop(ed, "overlay_lock", text="", icon='LOCKED')
78 layout.template_running_jobs()
81 class SEQUENCER_MT_view_toggle(Menu):
82 bl_label = "View Type"
84 def draw(self, context):
87 layout.operator("sequencer.view_toggle").type = 'SEQUENCER'
88 layout.operator("sequencer.view_toggle").type = 'PREVIEW'
89 layout.operator("sequencer.view_toggle").type = 'SEQUENCER_PREVIEW'
92 class SEQUENCER_MT_view(Menu):
95 def draw(self, context):
98 st = context.space_data
100 layout.operator("sequencer.properties", icon='MENU_PANEL')
104 if st.view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'}:
105 layout.operator("sequencer.view_all", text="View all Sequences")
106 if st.view_type in {'PREVIEW', 'SEQUENCER_PREVIEW'}:
107 layout.operator_context = 'INVOKE_REGION_PREVIEW'
108 layout.operator("sequencer.view_all_preview", text="Fit preview in window")
109 layout.operator("sequencer.view_zoom_ratio", text="Show preview 1:1").ratio = 1.0
110 layout.operator_context = 'INVOKE_DEFAULT'
112 # # XXX, invokes in the header view
113 # layout.operator("sequencer.view_ghost_border", text='Overlay Border')
115 layout.operator("sequencer.view_selected")
118 layout.operator("anim.time_toggle", text="Show Seconds")
120 layout.operator("anim.time_toggle", text="Show Frames")
122 layout.prop(st, "show_frame_indicator")
123 if st.display_mode == 'IMAGE':
124 layout.prop(st, "show_safe_margin")
125 if st.display_mode == 'WAVEFORM':
126 layout.prop(st, "show_separate_color")
129 layout.prop(st, "use_marker_sync")
132 layout.operator("screen.area_dupli")
133 layout.operator("screen.screen_full_area")
136 class SEQUENCER_MT_select(Menu):
139 def draw(self, context):
142 layout.operator("sequencer.select_active_side", text="Strips to the Left").side = 'LEFT'
143 layout.operator("sequencer.select_active_side", text="Strips to the Right").side = 'RIGHT'
145 layout.operator("sequencer.select_handles", text="Surrounding Handles").side = 'BOTH'
146 layout.operator("sequencer.select_handles", text="Left Handle").side = 'LEFT'
147 layout.operator("sequencer.select_handles", text="Right Handle").side = 'RIGHT'
149 layout.operator_menu_enum("object.select_grouped", "type", text="Grouped")
150 layout.operator("sequencer.select_linked")
151 layout.operator("sequencer.select_all_toggle")
152 layout.operator("sequencer.select_inverse")
155 class SEQUENCER_MT_marker(Menu):
158 def draw(self, context):
161 from .space_time import marker_menu_generic
162 marker_menu_generic(layout)
165 class SEQUENCER_MT_change(Menu):
168 def draw(self, context):
171 layout.operator_context = 'INVOKE_REGION_WIN'
173 layout.operator_menu_enum("sequencer.change_effect_input", "swap")
174 layout.operator_menu_enum("sequencer.change_effect_type", "type")
175 layout.operator("sequencer.change_path", text="Path/Files")
178 class SEQUENCER_MT_add(Menu):
181 def draw(self, context):
183 layout.operator_context = 'INVOKE_REGION_WIN'
185 if len(bpy.data.scenes) > 10:
186 layout.operator_context = 'INVOKE_DEFAULT'
187 layout.operator("sequencer.scene_strip_add", text="Scene...")
189 layout.operator_menu_enum("sequencer.scene_strip_add", "scene", text="Scene...")
191 layout.operator("sequencer.movie_strip_add", text="Movie")
192 layout.operator("sequencer.image_strip_add", text="Image")
193 layout.operator("sequencer.sound_strip_add", text="Sound")
195 layout.menu("SEQUENCER_MT_add_effect")
198 class SEQUENCER_MT_add_effect(Menu):
199 bl_label = "Effect Strip..."
201 def draw(self, context):
203 layout.operator_context = 'INVOKE_REGION_WIN'
205 layout.operator("sequencer.effect_strip_add", text="Add").type = 'ADD'
206 layout.operator("sequencer.effect_strip_add", text="Subtract").type = 'SUBTRACT'
207 layout.operator("sequencer.effect_strip_add", text="Alpha Over").type = 'ALPHA_OVER'
208 layout.operator("sequencer.effect_strip_add", text="Alpha Under").type = 'ALPHA_UNDER'
209 layout.operator("sequencer.effect_strip_add", text="Cross").type = 'CROSS'
210 layout.operator("sequencer.effect_strip_add", text="Gamma Cross").type = 'GAMMA_CROSS'
211 layout.operator("sequencer.effect_strip_add", text="Multiply").type = 'MULTIPLY'
212 layout.operator("sequencer.effect_strip_add", text="Over Drop").type = 'OVER_DROP'
213 layout.operator("sequencer.effect_strip_add", text="Plugin").type = 'PLUGIN'
214 layout.operator("sequencer.effect_strip_add", text="Wipe").type = 'WIPE'
215 layout.operator("sequencer.effect_strip_add", text="Glow").type = 'GLOW'
216 layout.operator("sequencer.effect_strip_add", text="Transform").type = 'TRANSFORM'
217 layout.operator("sequencer.effect_strip_add", text="Color").type = 'COLOR'
218 layout.operator("sequencer.effect_strip_add", text="Speed Control").type = 'SPEED'
219 layout.operator("sequencer.effect_strip_add", text="Multicam Selector").type = 'MULTICAM'
220 layout.operator("sequencer.effect_strip_add", text="Adjustment Layer").type = 'ADJUSTMENT'
223 class SEQUENCER_MT_strip(Menu):
226 def draw(self, context):
229 layout.operator_context = 'INVOKE_REGION_WIN'
231 layout.operator("transform.transform", text="Grab/Move").mode = 'TRANSLATION'
232 layout.operator("transform.transform", text="Grab/Extend from frame").mode = 'TIME_EXTEND'
233 # uiItemO(layout, NULL, 0, "sequencer.strip_snap"); // TODO - add this operator
236 layout.operator("sequencer.cut", text="Cut (hard) at frame").type = 'HARD'
237 layout.operator("sequencer.cut", text="Cut (soft) at frame").type = 'SOFT'
238 layout.operator("sequencer.images_separate")
239 layout.operator("sequencer.offset_clear")
240 layout.operator("sequencer.deinterlace_selected_movies")
241 layout.operator("sequencer.rebuild_proxy")
244 layout.operator("sequencer.duplicate")
245 layout.operator("sequencer.delete")
247 strip = act_strip(context)
252 # XXX note strip.type is never equal to 'EFFECT', look at seq_type_items within rna_sequencer.c
253 if stype == 'EFFECT':
256 # layout.operator("sequencer.effect_change")
257 # layout.operator("sequencer.effect_reassign_inputs")
258 elif stype == 'IMAGE':
260 # layout.operator("sequencer.image_change")
261 layout.operator("sequencer.rendersize")
262 elif stype == 'SCENE':
265 # layout.operator("sequencer.scene_change", text="Change Scene")
266 elif stype == 'MOVIE':
268 # layout.operator("sequencer.movie_change")
269 layout.operator("sequencer.rendersize")
273 layout.operator("sequencer.meta_make")
274 layout.operator("sequencer.meta_separate")
276 #if (ed && (ed->metastack.first || (ed->act_seq && ed->act_seq->type == SEQ_META))) {
278 # uiItemO(layout, NULL, 0, "sequencer.meta_toggle");
282 layout.operator("sequencer.reload")
283 layout.operator("sequencer.reassign_inputs")
284 layout.operator("sequencer.swap_inputs")
286 layout.operator("sequencer.lock")
287 layout.operator("sequencer.unlock")
288 layout.operator("sequencer.mute")
289 layout.operator("sequencer.unmute")
291 layout.operator("sequencer.mute", text="Mute Deselected Strips").unselected = True
293 layout.operator("sequencer.snap")
295 layout.operator_menu_enum("sequencer.swap", "side")
299 layout.operator("sequencer.swap_data")
300 layout.menu("SEQUENCER_MT_change")
303 class SequencerButtonsPanel():
304 bl_space_type = 'SEQUENCE_EDITOR'
305 bl_region_type = 'UI'
308 def has_sequencer(context):
309 return (context.space_data.view_type in {'SEQUENCER', 'SEQUENCER_PREVIEW'})
312 def poll(cls, context):
313 return cls.has_sequencer(context) and (act_strip(context) is not None)
316 class SequencerButtonsPanel_Output():
317 bl_space_type = 'SEQUENCE_EDITOR'
318 bl_region_type = 'UI'
321 def has_preview(context):
322 return (context.space_data.view_type in {'PREVIEW', 'SEQUENCER_PREVIEW'})
325 def poll(cls, context):
326 return cls.has_preview(context)
329 class SEQUENCER_PT_edit(SequencerButtonsPanel, Panel):
330 bl_label = "Edit Strip"
332 def draw(self, context):
334 scene = context.scene
335 frame_current = scene.frame_current
336 strip = act_strip(context)
338 split = layout.split(percentage=0.3)
339 split.label(text="Name:")
340 split.prop(strip, "name", text="")
342 split = layout.split(percentage=0.3)
343 split.label(text="Type:")
344 split.prop(strip, "type", text="")
346 split = layout.split(percentage=0.3)
347 split.label(text="Blend:")
348 split.prop(strip, "blend_type", text="")
350 row = layout.row(align=True)
352 sub.active = (not strip.mute)
353 sub.prop(strip, "blend_alpha", text="Opacity", slider=True)
354 row.prop(strip, "mute", toggle=True, icon='RESTRICT_VIEW_ON' if strip.mute else 'RESTRICT_VIEW_OFF', text="")
355 row.prop(strip, "lock", toggle=True, icon='LOCKED' if strip.lock else 'UNLOCKED', text="")
357 col = layout.column()
359 sub.enabled = not strip.lock
360 sub.prop(strip, "channel")
361 sub.prop(strip, "frame_start")
362 sub.prop(strip, "frame_final_duration")
364 col = layout.column(align=True)
366 row.label(text="Final Length" + ": %s" % bpy.utils.smpte_from_frame(strip.frame_final_duration))
368 row.active = (frame_current >= strip.frame_start and frame_current <= strip.frame_start + strip.frame_duration)
369 row.label(text="Playhead" + ": %d" % (frame_current - strip.frame_start))
371 col.label(text="Frame Offset" + " %d:%d" % (strip.frame_offset_start, strip.frame_offset_end))
372 col.label(text="Frame Still" + " %d:%d" % (strip.frame_still_start, strip.frame_still_end))
376 if strip.type == 'IMAGE':
377 elem = strip.getStripElem(frame_current)
378 elif strip.type == 'MOVIE':
379 elem = strip.elements[0]
381 if elem and elem.orig_width > 0 and elem.orig_height > 0:
382 col.label(text="Orig Dim" + ": %dx%d" % (elem.orig_width, elem.orig_height))
384 col.label(text="Orig Dim: None")
387 class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel):
388 bl_label = "Effect Strip"
391 def poll(cls, context):
392 if not cls.has_sequencer(context):
395 strip = act_strip(context)
399 return strip.type in {'ADD', 'SUBTRACT', 'ALPHA_OVER', 'ALPHA_UNDER',
400 'CROSS', 'GAMMA_CROSS', 'MULTIPLY', 'OVER_DROP',
402 'WIPE', 'GLOW', 'TRANSFORM', 'COLOR', 'SPEED',
403 'MULTICAM', 'ADJUSTMENT'}
405 def draw(self, context):
408 strip = act_strip(context)
409 if strip.input_count > 0:
410 col = layout.column()
411 col.prop(strip, "input_1")
412 if strip.input_count > 1:
413 col.prop(strip, "input_2")
414 if strip.input_count > 2:
415 col.prop(strip, "input_3")
417 if strip.type == 'COLOR':
418 layout.prop(strip, "color")
420 elif strip.type == 'WIPE':
422 col = layout.column()
423 col.prop(strip, "transition_type")
424 col.label(text="Direction:")
425 col.row().prop(strip, "direction", expand=True)
427 col = layout.column()
428 col.prop(strip, "blur_width", slider=True)
429 if strip.transition_type in {'SINGLE', 'DOUBLE'}:
430 col.prop(strip, "angle")
432 elif strip.type == 'GLOW':
433 flow = layout.column_flow()
434 flow.prop(strip, "threshold", slider=True)
435 flow.prop(strip, "clamp", slider=True)
436 flow.prop(strip, "boost_factor")
437 flow.prop(strip, "blur_radius")
440 row.prop(strip, "quality", slider=True)
441 row.prop(strip, "use_only_boost")
443 elif strip.type == 'SPEED':
444 layout.prop(strip, "use_default_fade", "Stretch to input strip length")
445 if not strip.use_default_fade:
446 layout.prop(strip, "use_as_speed")
447 if strip.use_as_speed:
448 layout.prop(strip, "speed_factor")
450 layout.prop(strip, "speed_factor", text="Frame number")
451 layout.prop(strip, "scale_to_length")
453 #doesn't work currently
454 #layout.prop(strip, "use_frame_blend")
456 elif strip.type == 'TRANSFORM':
457 self.draw_panel_transform(strip)
459 elif strip.type == "MULTICAM":
460 layout.prop(strip, "multicam_source")
462 row = layout.row(align=True)
466 sub.operator("screen.animation_play", text="", icon='PAUSE' if context.screen.is_animation_playing else 'PLAY')
469 for i in range(1, strip.channel):
470 row.operator("sequencer.cut_multicam", text=str(i)).camera = i
472 col = layout.column(align=True)
473 if strip.type == 'SPEED':
474 col.prop(strip, "multiply_speed")
475 elif strip.type in {'CROSS', 'GAMMA_CROSS', 'PLUGIN', 'WIPE'}:
476 col.prop(strip, "use_default_fade", "Default fade")
477 if not strip.use_default_fade:
478 col.prop(strip, "effect_fader", text="Effect fader")
480 layout.prop(strip, "use_translation", text="Image Offset:")
481 if strip.use_translation:
482 col = layout.column(align=True)
483 col.prop(strip.transform, "offset_x", text="X")
484 col.prop(strip.transform, "offset_y", text="Y")
486 layout.prop(strip, "use_crop", text="Image Crop:")
488 col = layout.column(align=True)
489 col.prop(strip.crop, "max_y")
490 col.prop(strip.crop, "min_x")
491 col.prop(strip.crop, "min_y")
492 col.prop(strip.crop, "max_x")
494 def draw_panel_transform(self, strip):
496 col = layout.column()
498 col.prop(strip, "interpolation")
499 col.prop(strip, "translation_unit")
500 col = layout.column(align=True)
501 col.label(text="Position:")
502 col.prop(strip, "translate_start_x", text="X")
503 col.prop(strip, "translate_start_y", text="Y")
507 col = layout.column(align=True)
508 col.prop(strip, "use_uniform_scale")
509 if (strip.use_uniform_scale):
510 col = layout.column(align=True)
511 col.prop(strip, "scale_start_x", text="Scale")
513 col = layout.column(align=True)
514 col.label(text="Scale:")
515 col.prop(strip, "scale_start_x", text="X")
516 col.prop(strip, "scale_start_y", text="Y")
520 col = layout.column(align=True)
521 col.label(text="Rotation:")
522 col.prop(strip, "rotation_start", text="Rotation")
525 class SEQUENCER_PT_input(SequencerButtonsPanel, Panel):
526 bl_label = "Strip Input"
529 def poll(cls, context):
530 if not cls.has_sequencer(context):
533 strip = act_strip(context)
537 return strip.type in {'MOVIE', 'IMAGE', 'SCENE', 'META',
538 'ADD', 'SUBTRACT', 'ALPHA_OVER', 'ALPHA_UNDER',
539 'CROSS', 'GAMMA_CROSS', 'MULTIPLY', 'OVER_DROP',
541 'WIPE', 'GLOW', 'TRANSFORM',
542 'MULTICAM', 'SPEED', 'ADJUSTMENT'}
544 def draw(self, context):
547 strip = act_strip(context)
549 seq_type = strip.type
551 # draw a filename if we have one
552 if seq_type == 'IMAGE':
553 split = layout.split(percentage=0.2)
555 col.label(text="Path:")
557 col.prop(strip, "directory", text="")
559 # Current element for the filename
561 elem = strip.getStripElem(context.scene.frame_current)
563 split = layout.split(percentage=0.2)
565 col.label(text="File:")
567 col.prop(elem, "filename", text="") # strip.elements[0] could be a fallback
569 # also accessible from the menu
570 layout.operator("sequencer.change_path")
572 elif seq_type == 'MOVIE':
573 split = layout.split(percentage=0.2)
575 col.label(text="Path:")
577 col.prop(strip, "filepath", text="")
578 col.prop(strip, "mpeg_preseek", text="MPEG Preseek")
579 col.prop(strip, "stream_index", text="Stream Index")
582 # end drawing filename
584 layout.prop(strip, "use_translation", text="Image Offset:")
585 if strip.use_translation:
586 col = layout.column(align=True)
587 col.prop(strip.transform, "offset_x", text="X")
588 col.prop(strip.transform, "offset_y", text="Y")
590 layout.prop(strip, "use_crop", text="Image Crop:")
592 col = layout.column(align=True)
593 col.prop(strip.crop, "max_y")
594 col.prop(strip.crop, "min_x")
595 col.prop(strip.crop, "min_y")
596 col.prop(strip.crop, "max_x")
598 if not isinstance(strip, bpy.types.EffectSequence):
599 col = layout.column(align=True)
600 col.label(text="Trim Duration (hard):")
601 col.prop(strip, "animation_offset_start", text="Start")
602 col.prop(strip, "animation_offset_end", text="End")
604 col = layout.column(align=True)
605 col.label(text="Trim Duration (soft):")
606 col.prop(strip, "frame_offset_start", text="Start")
607 col.prop(strip, "frame_offset_end", text="End")
610 class SEQUENCER_PT_sound(SequencerButtonsPanel, Panel):
614 def poll(cls, context):
615 if not cls.has_sequencer(context):
618 strip = act_strip(context)
622 return (strip.type == 'SOUND')
624 def draw(self, context):
627 strip = act_strip(context)
629 layout.template_ID(strip, "sound", open="sound.open")
632 layout.prop(strip, "filepath", text="")
635 if strip.sound.packed_file:
636 row.operator("sound.unpack", icon='PACKAGE', text="Unpack")
638 row.operator("sound.pack", icon='UGLYPACKAGE', text="Pack")
640 row.prop(strip.sound, "use_memory_cache")
642 layout.prop(strip, "waveform")
643 layout.prop(strip, "volume")
644 layout.prop(strip, "pitch")
645 layout.prop(strip, "pan")
647 col = layout.column(align=True)
648 col.label(text="Trim Duration:")
649 col.prop(strip, "animation_offset_start", text="Start")
650 col.prop(strip, "animation_offset_end", text="End")
653 class SEQUENCER_PT_scene(SequencerButtonsPanel, Panel):
657 def poll(cls, context):
658 if not cls.has_sequencer(context):
661 strip = act_strip(context)
665 return (strip.type == 'SCENE')
667 def draw(self, context):
670 strip = act_strip(context)
672 layout.template_ID(strip, "scene")
676 layout.prop(scene.render, "use_sequencer")
678 layout.label(text="Camera Override")
679 layout.template_ID(strip, "scene_camera")
682 sta = scene.frame_start
683 end = scene.frame_end
684 layout.label(text="Original frame range" + ": %d-%d (%d)" % (sta, end, end - sta + 1))
687 class SEQUENCER_PT_filter(SequencerButtonsPanel, Panel):
691 def poll(cls, context):
692 if not cls.has_sequencer(context):
695 strip = act_strip(context)
699 return strip.type in {'MOVIE', 'IMAGE', 'SCENE', 'META',
700 'ADD', 'SUBTRACT', 'ALPHA_OVER', 'ALPHA_UNDER',
701 'CROSS', 'GAMMA_CROSS', 'MULTIPLY', 'OVER_DROP',
703 'WIPE', 'GLOW', 'TRANSFORM', 'COLOR',
704 'MULTICAM', 'SPEED', 'ADJUSTMENT'}
706 def draw(self, context):
709 strip = act_strip(context)
711 col = layout.column()
712 col.label(text="Video:")
713 col.prop(strip, "strobe")
716 row.label(text="Flip:")
717 row.prop(strip, "use_flip_x", text="X")
718 row.prop(strip, "use_flip_y", text="Y")
720 col = layout.column()
721 col.prop(strip, "use_reverse_frames", text="Backwards")
722 col.prop(strip, "use_deinterlace")
724 col = layout.column()
725 col.label(text="Colors:")
726 col.prop(strip, "color_saturation", text="Saturation")
727 col.prop(strip, "color_multiply", text="Multiply")
728 col.prop(strip, "use_premultiply")
729 col.prop(strip, "use_float")
731 layout.prop(strip, "use_color_balance")
732 if strip.use_color_balance and strip.color_balance: # TODO - need to add this somehow
734 row.active = strip.use_color_balance
736 col.template_color_wheel(strip.color_balance, "lift", value_slider=False, cubic=True)
737 col.row().prop(strip.color_balance, "lift")
738 col.prop(strip.color_balance, "invert_lift", text="Inverse")
740 col.template_color_wheel(strip.color_balance, "gamma", value_slider=False, lock_luminosity=True, cubic=True)
741 col.row().prop(strip.color_balance, "gamma")
742 col.prop(strip.color_balance, "invert_gamma", text="Inverse")
744 col.template_color_wheel(strip.color_balance, "gain", value_slider=False, lock_luminosity=True, cubic=True)
745 col.row().prop(strip.color_balance, "gain")
746 col.prop(strip.color_balance, "invert_gain", text="Inverse")
749 class SEQUENCER_PT_proxy(SequencerButtonsPanel, Panel):
750 bl_label = "Proxy / Timecode"
753 def poll(cls, context):
754 if not cls.has_sequencer(context):
757 strip = act_strip(context)
761 return strip.type in {'MOVIE', 'IMAGE', 'SCENE', 'META', 'MULTICAM'}
763 def draw_header(self, context):
764 strip = act_strip(context)
766 self.layout.prop(strip, "use_proxy", text="")
768 def draw(self, context):
771 strip = act_strip(context)
773 flow = layout.column_flow()
774 flow.prop(strip, "use_proxy_custom_directory")
775 flow.prop(strip, "use_proxy_custom_file")
777 if strip.use_proxy_custom_directory and not strip.use_proxy_custom_file:
778 flow.prop(strip.proxy, "directory")
779 if strip.use_proxy_custom_file:
780 flow.prop(strip.proxy, "filepath")
783 row.prop(strip.proxy, "build_25")
784 row.prop(strip.proxy, "build_50")
785 row.prop(strip.proxy, "build_75")
786 row.prop(strip.proxy, "build_100")
788 col = layout.column()
789 col.label(text="Build JPEG quality")
790 col.prop(strip.proxy, "quality")
792 if strip.type == "MOVIE":
793 col = layout.column()
794 col.label(text="Use timecode index:")
796 col.prop(strip.proxy, "timecode")
799 class SEQUENCER_PT_preview(SequencerButtonsPanel_Output, Panel):
800 bl_label = "Scene Preview/Render"
801 bl_space_type = 'SEQUENCE_EDITOR'
802 bl_region_type = 'UI'
804 def draw(self, context):
806 render = context.scene.render
808 col = layout.column()
809 col.active = False # Currently only opengl preview works!
810 col.prop(render, "use_sequencer_gl_preview", text="Open GL Preview")
811 col = layout.column()
812 #col.active = render.use_sequencer_gl_preview
813 col.prop(render, "sequencer_gl_preview", text="")
816 col = layout.column()
817 col.prop(render, "use_sequencer_gl_render", text="Open GL Render")
818 col = layout.column()
819 col.active = render.use_sequencer_gl_render
820 col.prop(render, "sequencer_gl_render", text="")
824 class SEQUENCER_PT_view(SequencerButtonsPanel_Output, Panel):
825 bl_label = "View Settings"
827 def draw(self, context):
830 st = context.space_data
832 col = layout.column()
833 if st.display_mode == 'IMAGE':
834 col.prop(st, "draw_overexposed") # text="Zebra"
835 col.prop(st, "show_safe_margin")
836 if st.display_mode == 'WAVEFORM':
837 col.prop(st, "show_separate_color")
838 col.prop(st, "proxy_render_size")
840 if __name__ == "__main__": # only for live edit.
841 bpy.utils.register_module(__name__)