diff options
author | William Reynish <billrey@me.com> | 2019-05-18 02:11:45 +0300 |
---|---|---|
committer | William Reynish <billrey@me.com> | 2019-05-18 02:11:45 +0300 |
commit | 40a7ec837543592dbfcad93b365ab60967502d22 (patch) | |
tree | 05afa1531e12020bedb8b9cf14243de9485922d3 /release/scripts/startup/bl_ui/space_sequencer.py | |
parent | 3b8ae2c08f5c72742a12dd91eaae58c8973dbdbc (diff) |
UI: Sequencer menus
Add missing menu entries:
- Select Box
- Sound Crossfade
- Toggle Meta
- Gap Remove
Also:
- Rename menu entries to use Playhead rather than the ambiguous Frame
- Use icons for the rest of the Add menu categories
Thanks to user tintwotin for pointing out the missing items
Diffstat (limited to 'release/scripts/startup/bl_ui/space_sequencer.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index eaaebf170c1..0cd4b49d001 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -265,6 +265,10 @@ class SEQUENCER_MT_select(Menu): layout.separator() + layout.operator("sequencer.select_box", text = "Box Select") + + layout.separator() + layout.operator("sequencer.select_active_side", text="Strips to the Left").side = 'LEFT' layout.operator("sequencer.select_active_side", text="Strips to the Right").side = 'RIGHT' props = layout.operator("sequencer.select", text="All Strips to the Left") @@ -409,10 +413,10 @@ class SEQUENCER_MT_add(Menu): layout.operator("sequencer.effect_strip_add", text="Adjustment Layer", icon='COLOR').type = 'ADJUSTMENT' layout.operator_context = 'INVOKE_DEFAULT' - layout.menu("SEQUENCER_MT_add_effect") + layout.menu("SEQUENCER_MT_add_effect", icon='SHADERFX') col = layout.column() - col.menu("SEQUENCER_MT_add_transitions") + col.menu("SEQUENCER_MT_add_transitions", icon='ARROW_LEFTRIGHT') col.enabled = selected_sequences_len(context) >= 2 @@ -433,6 +437,11 @@ class SEQUENCER_MT_add_transitions(Menu): layout = self.layout col = layout.column() + + col.operator("sequencer.crossfade_sounds", text="Sound Crossfade") + + col.separator() + col.operator("sequencer.effect_strip_add", text="Cross").type = 'CROSS' col.operator("sequencer.effect_strip_add", text="Gamma Cross").type = 'GAMMA_CROSS' @@ -484,7 +493,7 @@ class SEQUENCER_MT_strip_transform(Menu): layout = self.layout layout.operator("transform.transform", text="Move").mode = 'TRANSLATION' - layout.operator("transform.transform", text="Move/Extend from Frame").mode = 'TIME_EXTEND' + layout.operator("transform.transform", text="Move/Extend from Playhead").mode = 'TIME_EXTEND' layout.operator("sequencer.slip", text="Slip Strip Contents") layout.separator() @@ -546,6 +555,7 @@ class SEQUENCER_MT_strip(Menu): layout.menu("SEQUENCER_MT_strip_transform") layout.operator("sequencer.snap") layout.operator("sequencer.offset_clear") + layout.operator("sequencer.gap_remove", text = "Extract All").all=True layout.separator() layout.operator("sequencer.copy", text="Copy") @@ -554,8 +564,8 @@ class SEQUENCER_MT_strip(Menu): layout.operator("sequencer.delete", text="Delete...") layout.separator() - layout.operator("sequencer.cut", text="Cut (Hard) at frame").type = 'HARD' - layout.operator("sequencer.cut", text="Cut (Soft) at frame").type = 'SOFT' + layout.operator("sequencer.cut", text="Cut (Hard) at Playhead").type = 'HARD' + layout.operator("sequencer.cut", text="Cut (Soft) at Playhead").type = 'SOFT' layout.separator() layout.operator("sequencer.deinterlace_selected_movies") @@ -590,6 +600,7 @@ class SEQUENCER_MT_strip(Menu): layout.separator() layout.operator("sequencer.meta_make") + layout.operator("sequencer.meta_toggle", text="Toggle Meta") layout.separator() layout.menu("SEQUENCER_MT_strip_input") @@ -1614,7 +1625,7 @@ class SEQUENCER_PT_frame_overlay(SequencerButtonsPanel_Output, Panel): layout.use_property_split = True layout.use_property_decorate = False - + st = context.space_data scene = context.scene ed = scene.sequence_editor |