Expose preview setting operators on menus for sequencer and timeline
(could not find them anywhere before)
This commit is contained in:
@@ -59,12 +59,17 @@ class SEQUENCER_HT_header(Header):
|
||||
layout = self.layout
|
||||
|
||||
st = context.space_data
|
||||
scene = context.scene
|
||||
|
||||
row = layout.row(align=True)
|
||||
row.template_header()
|
||||
|
||||
SEQUENCER_MT_editor_menus.draw_collapsible(context, layout)
|
||||
|
||||
row = layout.row(align=True)
|
||||
row.prop(scene, "use_preview_range", text="", toggle=True)
|
||||
row.prop(scene, "lock_frame_selection_to_range", text="", toggle=True)
|
||||
|
||||
layout.prop(st, "view_type", expand=True, text="")
|
||||
|
||||
if st.view_type in {'PREVIEW', 'SEQUENCER_PREVIEW'}:
|
||||
@@ -122,6 +127,7 @@ class SEQUENCER_MT_editor_menus(Menu):
|
||||
layout.menu("SEQUENCER_MT_select")
|
||||
layout.menu("SEQUENCER_MT_marker")
|
||||
layout.menu("SEQUENCER_MT_add")
|
||||
layout.menu("SEQUENCER_MT_frame")
|
||||
layout.menu("SEQUENCER_MT_strip")
|
||||
|
||||
|
||||
@@ -237,6 +243,15 @@ class SEQUENCER_MT_change(Menu):
|
||||
layout.operator("sequencer.change_path", text="Path/Files")
|
||||
|
||||
|
||||
class SEQUENCER_MT_frame(Menu):
|
||||
bl_label = "Frame"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
layout.operator("anim.previewrange_clear")
|
||||
layout.operator("anim.previewrange_set")
|
||||
|
||||
class SEQUENCER_MT_add(Menu):
|
||||
bl_label = "Add"
|
||||
|
||||
|
Reference in New Issue
Block a user