diff options
author | Alessio Monti di Sopra <a.monti> | 2019-11-03 08:53:39 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2019-11-03 08:53:48 +0300 |
commit | d4bef6a215080e99119089148c0368e60c43f436 (patch) | |
tree | f95a4fd0ad98289856790afa13c8304b5c443af7 /release | |
parent | b9c2f8f3c89c3386e50cfcfc95c17ff6366222bb (diff) |
VSE: add a Set frame range to Strips operator
Add operator that sets the frame range, with an option to choose the regular or the preview one, around the selected strips.
Reviewed By: ISS
Differential Revision: https://developer.blender.org/D6078
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index e145b53cbd1..4d9a4646f5f 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -176,12 +176,14 @@ class SEQUENCER_MT_range(Menu): layout = self.layout layout.operator("anim.previewrange_set", text="Set Preview Range") + layout.operator("sequencer.set_range_to_strips", text="Set Preview Range to Strips").preview = True layout.operator("anim.previewrange_clear", text="Clear Preview Range") layout.separator() layout.operator("anim.start_frame_set", text="Set Start Frame") layout.operator("anim.end_frame_set", text="Set End Frame") + layout.operator("sequencer.set_range_to_strips", text="Set Frame Range to Strips") class SEQUENCER_MT_preview_zoom(Menu): @@ -756,6 +758,10 @@ class SEQUENCER_MT_context_menu(Menu): layout.separator() + layout.operator("sequencer.set_range_to_strips", text="Set Preview Range to Strips").preview = True + + layout.separator() + layout.operator("sequencer.gap_remove").all = False layout.operator("sequencer.gap_insert") |