From 2fc9ad56e7686a2cf65d5dd8a314f9eca29fc424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cchristopheseux=E2=80=9D?= <“seuxchristophe@hotmail.fr”> Date: Mon, 24 Apr 2023 18:50:41 +0200 Subject: [PATCH] presets and fix episode --- panels.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/panels.py b/panels.py index 45d02f0..0e9ab1a 100644 --- a/panels.py +++ b/panels.py @@ -4,6 +4,7 @@ from pathlib import Path import bpy from bpy.types import Panel +from bl_ui.utils import PresetPanel from vse_toolbox.bl_utils import (get_addon_prefs, get_scene_settings, get_strip_settings) from vse_toolbox.constants import ASSET_PREVIEWS @@ -172,6 +173,13 @@ class VSETB_PT_imports(VSETB_main, Panel): col.operator('vse_toolbox.import_files', text='Import', icon='IMPORT') +class VSETB_PT_presets(PresetPanel, Panel): + bl_label = 'Spreadsheet Presets' + preset_subdir = 'vse_toolbox' + preset_operator = 'script.execute_preset' + preset_add_operator = "vse_toolbox.add_spreadsheet_preset" + + class VSETB_PT_exports(VSETB_main, Panel): bl_label = "Exports" bl_parent_id = "VSETB_PT_main" @@ -236,6 +244,9 @@ class VSETB_PT_casting(VSETB_main, Panel): col_tool.separator() col_tool.operator('vse_toolbox.copy_casting', icon='COPYDOWN', text="") col_tool.operator('vse_toolbox.paste_casting', icon='PASTEDOWN', text="") + col_tool.separator() + + col_tool.operator('vse_toolbox.casting_replace', icon='ZOOM_ALL', text="") if strip_settings.casting: casting_item = strip_settings.casting[strip_settings.casting_index] @@ -299,6 +310,7 @@ classes = ( VSETB_PT_sequencer, VSETB_PT_casting, VSETB_PT_metadata, + VSETB_PT_presets, VSETB_PT_exports, )