Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_sequencer.py
| Show First 20 Lines • Show All 579 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| if strip.type == 'IMAGE': | if strip.type == 'IMAGE': | ||||
| elem = strip.strip_elem_from_frame(frame_current) | elem = strip.strip_elem_from_frame(frame_current) | ||||
| elif strip.type == 'MOVIE': | elif strip.type == 'MOVIE': | ||||
| elem = strip.elements[0] | elem = strip.elements[0] | ||||
| if elem and elem.orig_width > 0 and elem.orig_height > 0: | if elem and elem.orig_width > 0 and elem.orig_height > 0: | ||||
| col.label(text=iface_("Original Dimension: %dx%d") % (elem.orig_width, elem.orig_height), translate=False) | col.label(text=iface_("Original Dimension: %dx%d") % (elem.orig_width, elem.orig_height), translate=False) | ||||
| class SEQUENCER_PT_strip_preview(SequencerButtonsPanel, Panel): | |||||
lijenstina: Style: Expected 2 blank lines before class definitions (E302) | |||||
| bl_label = "Preview Settings" | |||||
| bl_category = "Strip" | |||||
| bl_space_type = 'SEQUENCE_EDITOR' | |||||
| bl_region_type = 'UI' | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| scene = context.scene | |||||
| frame_current = scene.frame_current | |||||
| strip = act_strip(context) | |||||
| col = layout.column() | |||||
| col.prop(strip, "use_view_render_override", text="Override Preview Engine") | |||||
campbellbartonUnsubmitted Not Done Inline ActionsIt's odd this is shown before checking if it could be None, probably this panel should have a poll that checks for a scene? Also, strip.use_view_render_override is not allocated and can never be NULL. campbellbarton: It's odd this is shown before checking if it could be `None`, probably this panel should have… | |||||
spockTheGrayAuthorUnsubmitted Not Done Inline ActionsSorry this was sloppy for sure - nice catch :) Updated to use poll as other classes do... spockTheGray: Sorry this was sloppy for sure - nice catch :) Updated to use poll as other classes do... | |||||
| if (strip is not None and strip.type == 'SCENE' and strip.use_view_render_override): | |||||
Done Inline ActionsShould be strip is not None campbellbarton: Should be `strip is not None` | |||||
| col.separator() | |||||
| col.label(text="Render Engine: ") | |||||
| row = col.row() | |||||
| row.prop(strip.view_render, "engine", text="") | |||||
| class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel): | class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel): | ||||
| bl_label = "Effect Strip" | bl_label = "Effect Strip" | ||||
| bl_category = "Strip" | bl_category = "Strip" | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| if not cls.has_sequencer(context): | if not cls.has_sequencer(context): | ||||
| ▲ Show 20 Lines • Show All 527 Lines • ▼ Show 20 Lines | class SEQUENCER_PT_preview(SequencerButtonsPanel_Output, Panel): | ||||
| bl_space_type = 'SEQUENCE_EDITOR' | bl_space_type = 'SEQUENCE_EDITOR' | ||||
| bl_region_type = 'UI' | bl_region_type = 'UI' | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| render = context.scene.render | render = context.scene.render | ||||
| col = layout.column() | col = layout.column() | ||||
lijenstinaUnsubmitted Not Done Inline ActionsTrailing spaces lijenstina: Trailing spaces | |||||
| col.prop(render, "sequencer_gl_preview", text="") | |||||
| row = col.row() | |||||
| row.active = render.sequencer_gl_preview == 'SOLID' | |||||
| row.prop(render, "use_sequencer_gl_textured_solid") | |||||
| col.prop(render, "use_sequencer_gl_dof") | col.prop(render, "use_sequencer_gl_dof") | ||||
| class SEQUENCER_PT_view(SequencerButtonsPanel_Output, Panel): | class SEQUENCER_PT_view(SequencerButtonsPanel_Output, Panel): | ||||
| bl_label = "View Settings" | bl_label = "View Settings" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| ▲ Show 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | classes = ( | ||||
| SEQUENCER_MT_frame, | SEQUENCER_MT_frame, | ||||
| SEQUENCER_MT_add, | SEQUENCER_MT_add, | ||||
| SEQUENCER_MT_add_effect, | SEQUENCER_MT_add_effect, | ||||
| SEQUENCER_MT_strip, | SEQUENCER_MT_strip, | ||||
| SEQUENCER_MT_strip_transform, | SEQUENCER_MT_strip_transform, | ||||
| SEQUENCER_MT_strip_input, | SEQUENCER_MT_strip_input, | ||||
| SEQUENCER_MT_strip_lock_mute, | SEQUENCER_MT_strip_lock_mute, | ||||
| SEQUENCER_PT_edit, | SEQUENCER_PT_edit, | ||||
| SEQUENCER_PT_strip_preview, | |||||
| SEQUENCER_PT_effect, | SEQUENCER_PT_effect, | ||||
| SEQUENCER_PT_input, | SEQUENCER_PT_input, | ||||
| SEQUENCER_PT_sound, | SEQUENCER_PT_sound, | ||||
| SEQUENCER_PT_scene, | SEQUENCER_PT_scene, | ||||
| SEQUENCER_PT_mask, | SEQUENCER_PT_mask, | ||||
| SEQUENCER_PT_filter, | SEQUENCER_PT_filter, | ||||
| SEQUENCER_PT_proxy, | SEQUENCER_PT_proxy, | ||||
| SEQUENCER_PT_preview, | SEQUENCER_PT_preview, | ||||
| Show All 13 Lines | |||||
Style: Expected 2 blank lines before class definitions (E302)