presets and fix episode

pull/5/head
“christopheseux” 2023-04-24 18:50:41 +02:00
parent a7afedd49b
commit 2fc9ad56e7
1 changed files with 12 additions and 0 deletions

View File

@ -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,
)