Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_sequencer.py
| Show First 20 Lines • Show All 315 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.prop(st, "show_locked_time") | layout.prop(st, "show_locked_time") | ||||
| layout.separator() | layout.separator() | ||||
| layout.prop(st, "show_seconds") | layout.prop(st, "show_seconds") | ||||
| layout.prop(st, "show_strip_offset") | layout.prop(st, "show_strip_offset") | ||||
| layout.prop(st, "show_fcurves") | layout.prop(st, "show_fcurves") | ||||
| layout.prop(st, "show_markers") | layout.prop(st, "show_markers") | ||||
| if context.preferences.view.show_developer_ui: | |||||
| layout.menu("SEQUENCER_MT_view_cache", text="Show Cache") | layout.menu("SEQUENCER_MT_view_cache", text="Show Cache") | ||||
| layout.prop_menu_enum(st, "waveform_display_type", text="Show Waveforms") | layout.prop_menu_enum(st, "waveform_display_type", text="Show Waveforms") | ||||
| if is_preview: | if is_preview: | ||||
| layout.separator() | layout.separator() | ||||
| if st.display_mode == 'IMAGE': | if st.display_mode == 'IMAGE': | ||||
| layout.prop(st, "use_zoom_to_fit") | layout.prop(st, "use_zoom_to_fit") | ||||
| layout.prop(ed, "show_overlay", text="Show Frame Overlay") | layout.prop(ed, "show_overlay", text="Show Frame Overlay") | ||||
| layout.prop(st, "show_safe_areas", text="Show Safe Areas") | layout.prop(st, "show_safe_areas", text="Show Safe Areas") | ||||
| ▲ Show 20 Lines • Show All 1,438 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(strip, "color_saturation", text="Saturation") | col.prop(strip, "color_saturation", text="Saturation") | ||||
| col.prop(strip, "color_multiply", text="Multiply") | col.prop(strip, "color_multiply", text="Multiply") | ||||
| col.prop(strip, "use_float", text="Convert to Float") | col.prop(strip, "use_float", text="Convert to Float") | ||||
| class SEQUENCER_PT_cache_settings(SequencerButtonsPanel, Panel): | class SEQUENCER_PT_cache_settings(SequencerButtonsPanel, Panel): | ||||
| bl_label = "Cache Settings" | bl_label = "Cache Settings" | ||||
| bl_category = "Proxy & Cache" | bl_category = "Cache" | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return cls.has_sequencer(context) and context.scene.sequence_editor | show_developer_ui = context.preferences.view.show_developer_ui | ||||
| return cls.has_sequencer(context) and context.scene.sequence_editor and show_developer_ui | |||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False | layout.use_property_decorate = False | ||||
| ed = context.scene.sequence_editor | ed = context.scene.sequence_editor | ||||
| col = layout.column(heading="Cache", align=True) | col = layout.column(heading="Cache", align=True) | ||||
| col.prop(ed, "use_cache_raw", text="Raw") | col.prop(ed, "use_cache_raw", text="Raw") | ||||
| col.prop(ed, "use_cache_preprocessed", text="Pre-Processed") | col.prop(ed, "use_cache_preprocessed", text="Pre-Processed") | ||||
| col.prop(ed, "use_cache_composite", text="Composite") | col.prop(ed, "use_cache_composite", text="Composite") | ||||
| col.prop(ed, "use_cache_final", text="Final") | col.prop(ed, "use_cache_final", text="Final") | ||||
| col.separator() | col.separator() | ||||
| col.prop(ed, "recycle_max_cost") | col.prop(ed, "recycle_max_cost") | ||||
| class SEQUENCER_PT_proxy_settings(SequencerButtonsPanel, Panel): | class SEQUENCER_PT_proxy_settings(SequencerButtonsPanel, Panel): | ||||
| bl_label = "Proxy Settings" | bl_label = "Proxy Settings" | ||||
| bl_category = "Proxy & Cache" | bl_category = "Proxy" | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return cls.has_sequencer(context) and context.scene.sequence_editor | return cls.has_sequencer(context) and context.scene.sequence_editor | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False | layout.use_property_decorate = False | ||||
| ed = context.scene.sequence_editor | ed = context.scene.sequence_editor | ||||
| flow = layout.column_flow() | flow = layout.column_flow() | ||||
| flow.prop(ed, "proxy_storage", text="Storage") | flow.prop(ed, "proxy_storage", text="Storage") | ||||
| if ed.proxy_storage == 'PROJECT': | if ed.proxy_storage == 'PROJECT': | ||||
| flow.prop(ed, "proxy_dir", text="Directory") | flow.prop(ed, "proxy_dir", text="Directory") | ||||
| col = layout.column() | col = layout.column() | ||||
| col.operator("sequencer.enable_proxies") | col.operator("sequencer.enable_proxies") | ||||
| col.operator("sequencer.rebuild_proxy") | col.operator("sequencer.rebuild_proxy") | ||||
| class SEQUENCER_PT_strip_proxy(SequencerButtonsPanel, Panel): | class SEQUENCER_PT_strip_proxy(SequencerButtonsPanel, Panel): | ||||
| bl_label = "Strip Proxy & Timecode" | bl_label = "Strip Proxy & Timecode" | ||||
| bl_category = "Proxy & Cache" | bl_category = "Proxy" | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| if not cls.has_sequencer(context) and context.scene.sequence_editor: | if not cls.has_sequencer(context) and context.scene.sequence_editor: | ||||
| return False | return False | ||||
| strip = act_strip(context) | strip = act_strip(context) | ||||
| if not strip: | if not strip: | ||||
| ▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| if strip.type == 'MOVIE': | if strip.type == 'MOVIE': | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(proxy, "timecode", text="Timecode Index") | col.prop(proxy, "timecode", text="Timecode Index") | ||||
| class SEQUENCER_PT_strip_cache(SequencerButtonsPanel, Panel): | class SEQUENCER_PT_strip_cache(SequencerButtonsPanel, Panel): | ||||
| bl_label = "Strip Cache" | bl_label = "Strip Cache" | ||||
| bl_category = "Proxy & Cache" | bl_category = "Cache" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| show_developer_ui = context.preferences.view.show_developer_ui | |||||
| if not cls.has_sequencer(context): | if not cls.has_sequencer(context): | ||||
| return False | return False | ||||
| if act_strip(context) is not None: | if act_strip(context) is not None and show_developer_ui: | ||||
| return True | return True | ||||
| return False | return False | ||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| strip = act_strip(context) | strip = act_strip(context) | ||||
| self.layout.prop(strip, "override_cache_settings", text="") | self.layout.prop(strip, "override_cache_settings", text="") | ||||
| def draw(self, context): | def draw(self, context): | ||||
| ▲ Show 20 Lines • Show All 357 Lines • Show Last 20 Lines | |||||