Insert and Remove Channel

This commit is contained in:
2024-05-14 11:49:47 +02:00
parent dbc92922b5
commit a53ceaf134
3 changed files with 96 additions and 2 deletions
+5 -1
View File
@@ -160,7 +160,7 @@ class VSETB_PT_sequencer(VSETB_main, Panel):
def draw_header_preset(self, context):
settings = get_scene_settings()
audio_strips = get_strips('Audio')
audio_strips = [s for s in get_strips('Audio') if s.type == "SOUND"]
depress = any(s.show_waveform for s in audio_strips)
self.layout.operator('vse_toolbox.show_waveform', text="", icon="IPO_ELASTIC", depress=depress).enabled = not depress
@@ -448,6 +448,10 @@ class VSETB_MT_main_menu(Menu):
layout.operator("wm.split_view", icon="ARROW_LEFTRIGHT")
layout.operator('vse_toolbox.open_strip_folder', text='Open Strip Folder', icon='FILE_FOLDER')
layout.operator('vse_toolbox.open_shot_on_tracker', text='Open Shot on Tracker', icon='URL')
layout.separator()
layout.operator('vse_toolbox.insert_channel', text='Insert Channel', icon='TRIA_UP_BAR')
layout.operator('vse_toolbox.remove_channel', text='Remove Channel', icon='TRIA_DOWN_BAR')
def draw_vse_toolbox_menu(self, context):
self.layout.menu("VSETB_MT_main_menu")