Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_sequencer.py
| Show All 16 Lines | |||||
| # ##### END GPL LICENSE BLOCK ##### | # ##### END GPL LICENSE BLOCK ##### | ||||
| # <pep8 compliant> | # <pep8 compliant> | ||||
| import bpy | import bpy | ||||
| from bpy.types import Header, Menu, Panel | from bpy.types import Header, Menu, Panel | ||||
| from bl_ui.properties_grease_pencil_common import GreasePencilDataPanel, GreasePencilToolsPanel | from bl_ui.properties_grease_pencil_common import GreasePencilDataPanel, GreasePencilToolsPanel | ||||
| from bpy.app.translations import pgettext_iface as iface_ | from bpy.app.translations import pgettext_iface as iface_ | ||||
| from bl_ui.properties_data_camera import draw_display_safe_settings | |||||
| def act_strip(context): | def act_strip(context): | ||||
| try: | try: | ||||
| return context.scene.sequence_editor.active_strip | return context.scene.sequence_editor.active_strip | ||||
| except AttributeError: | except AttributeError: | ||||
| return None | return None | ||||
| ▲ Show 20 Lines • Show All 167 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.prop(st, "show_seconds") | layout.prop(st, "show_seconds") | ||||
| layout.prop(st, "show_frame_indicator") | layout.prop(st, "show_frame_indicator") | ||||
| layout.prop(st, "show_strip_offset") | layout.prop(st, "show_strip_offset") | ||||
| layout.prop_menu_enum(st, "waveform_draw_type") | layout.prop_menu_enum(st, "waveform_draw_type") | ||||
| if is_preview: | if is_preview: | ||||
| if st.display_mode == 'IMAGE': | if st.display_mode == 'IMAGE': | ||||
| layout.prop(st, "show_safe_margin") | layout.prop(st, "show_safe_areas") | ||||
| elif st.display_mode == 'WAVEFORM': | elif st.display_mode == 'WAVEFORM': | ||||
| layout.prop(st, "show_separate_color") | layout.prop(st, "show_separate_color") | ||||
| layout.separator() | layout.separator() | ||||
| if is_sequencer_view: | if is_sequencer_view: | ||||
| layout.prop(st, "use_marker_sync") | layout.prop(st, "use_marker_sync") | ||||
| layout.separator() | layout.separator() | ||||
| ▲ Show 20 Lines • Show All 693 Lines • ▼ Show 20 Lines | def draw_header(self, context): | ||||
| self.layout.prop(strip, "use_proxy", text="") | self.layout.prop(strip, "use_proxy", text="") | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| strip = act_strip(context) | strip = act_strip(context) | ||||
| flow = layout.column_flow() | flow = layout.column_flow() | ||||
campbellbarton: also can be removed | |||||
| flow.prop(strip, "use_proxy_custom_directory") | flow.prop(strip, "use_proxy_custom_directory") | ||||
| flow.prop(strip, "use_proxy_custom_file") | flow.prop(strip, "use_proxy_custom_file") | ||||
| if strip.proxy: | if strip.proxy: | ||||
| if strip.use_proxy_custom_directory and not strip.use_proxy_custom_file: | if strip.use_proxy_custom_directory and not strip.use_proxy_custom_file: | ||||
Not Done Inline ActionsDrop debug prints. sergey: Drop debug prints. | |||||
| flow.prop(strip.proxy, "directory") | flow.prop(strip.proxy, "directory") | ||||
| if strip.use_proxy_custom_file: | if strip.use_proxy_custom_file: | ||||
| flow.prop(strip.proxy, "filepath") | flow.prop(strip.proxy, "filepath") | ||||
Not Done Inline ActionsThis can be de-duplicated. campbellbarton: This can be de-duplicated. | |||||
| row = layout.row() | row = layout.row() | ||||
| row.prop(strip.proxy, "build_25") | row.prop(strip.proxy, "build_25") | ||||
| row.prop(strip.proxy, "build_50") | row.prop(strip.proxy, "build_50") | ||||
| row.prop(strip.proxy, "build_75") | row.prop(strip.proxy, "build_75") | ||||
| row.prop(strip.proxy, "build_100") | row.prop(strip.proxy, "build_100") | ||||
Not Done Inline ActionsSame as above, prevent interface jumps. sergey: Same as above, prevent interface jumps. | |||||
| col = layout.column() | col = layout.column() | ||||
| col.label(text="Build JPEG quality") | col.label(text="Build JPEG quality") | ||||
| col.prop(strip.proxy, "quality") | col.prop(strip.proxy, "quality") | ||||
| if strip.type == 'MOVIE': | if strip.type == 'MOVIE': | ||||
| col = layout.column() | col = layout.column() | ||||
| col.label(text="Use timecode index:") | col.label(text="Use timecode index:") | ||||
| Show All 27 Lines | class SEQUENCER_PT_view(SequencerButtonsPanel_Output, Panel): | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| st = context.space_data | st = context.space_data | ||||
| col = layout.column() | col = layout.column() | ||||
| if st.display_mode == 'IMAGE': | if st.display_mode == 'IMAGE': | ||||
| col.prop(st, "draw_overexposed") | col.prop(st, "draw_overexposed") | ||||
| col.prop(st, "show_safe_margin") | col.separator() | ||||
| elif st.display_mode == 'WAVEFORM': | elif st.display_mode == 'WAVEFORM': | ||||
| col.prop(st, "show_separate_color") | col.prop(st, "show_separate_color") | ||||
| col = layout.column() | |||||
| col.separator() | |||||
| col.prop(st, "proxy_render_size") | col.prop(st, "proxy_render_size") | ||||
| class SEQUENCER_PT_view_safe_areas(SequencerButtonsPanel_Output, Panel): | |||||
| bl_label = "Safe Areas" | |||||
| bl_options = {'DEFAULT_CLOSED'} | |||||
| @classmethod | |||||
| def poll(cls, context): | |||||
| st = context.space_data | |||||
| return st.display_mode == 'IMAGE' | |||||
| def draw_header(self, context): | |||||
| st = context.space_data | |||||
Not Done Inline Actionsjust do: return st.display_mode == 'IMAGE' dfelinto: just do:
```
return st.display_mode == 'IMAGE'
```
| |||||
| self.layout.prop(st, "show_safe_areas", text="") | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| st = context.space_data | |||||
| draw_display_safe_settings(layout, st) | |||||
| class SEQUENCER_PT_modifiers(SequencerButtonsPanel, Panel): | class SEQUENCER_PT_modifiers(SequencerButtonsPanel, Panel): | ||||
| bl_label = "Modifiers" | bl_label = "Modifiers" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| strip = act_strip(context) | strip = act_strip(context) | ||||
| sequencer = context.scene.sequence_editor | sequencer = context.scene.sequence_editor | ||||
| ▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines | |||||
also can be removed