import spreadsheet

This commit is contained in:
“christopheseux”
2023-05-08 18:25:04 +02:00
parent 1ff1b37adb
commit 1ee883957f
7 changed files with 177 additions and 10 deletions
+18
View File
@@ -68,6 +68,23 @@ class VSETB_PT_main(VSETB_main, Panel):
# Rename
class VSETB_PT_strip(Panel):
bl_space_type = "SEQUENCE_EDITOR"
bl_region_type = "UI"
bl_category = "Strip"
bl_label = "VSE ToolBox"
#bl_order = 0
def draw(self, context):
prefs = get_addon_prefs()
layout = self.layout
settings = get_strip_settings()
layout.use_property_split = True
layout.use_property_decorate = False
layout.prop(settings, 'source_name', text='Source Name')
class VSETB_PT_sequencer(VSETB_main, Panel):
bl_label = "Sequencer"
@@ -324,6 +341,7 @@ classes = (
VSETB_PT_metadata,
VSETB_PT_presets,
VSETB_PT_exports,
VSETB_PT_strip
)
def register():
+3 -3
View File
@@ -265,7 +265,7 @@ class Project(PropertyGroup):
project = settings.active_project
cell_types = {}
cell_names = ['Sequence', 'Shot', 'Frames', 'Description']
cell_names = ['Sequence', 'Shot', 'Nb Frames', 'Description']
if project.type == 'TVSHOW':
cell_names.insert(0, 'Episode')
@@ -283,7 +283,7 @@ class Project(PropertyGroup):
def set_spreadsheet(self):
cell_names = ['Sequence', 'Shot', 'Frames', 'Description']
cell_names = ['Sequence', 'Shot', 'Nb Frames', 'Description']
if self.type == 'TVSHOW':
cell_names.insert(0, 'Episode')
@@ -418,7 +418,7 @@ class VSETB_UL_spreadsheet_import(UIList):
enabled = False
elif item_type == 'ASSET_TYPE' and not project.spreadsheet_import.import_casting:
enabled = False
elif item.import_name == 'Frames' and not project.spreadsheet_import.update_edit:
elif item.import_name == 'Nb Frames' and not project.spreadsheet_import.update_edit:
enabled = False
layout.enabled = enabled