fix metadata copy

pull/5/head
“christopheseux” 2023-04-27 10:08:24 +02:00
parent 5884d278da
commit dc345382bd
1 changed files with 6 additions and 1 deletions

View File

@ -71,8 +71,12 @@ class VSETB_OT_copy_metadata(Operator):
def execute(self, context):
prefs = get_addon_prefs()
settings = get_scene_settings()
project = settings.active_project
metadata = next(k for k, v in project.metadata_types.items() if v.name == self.metadata)
print('VSETB_OT_copy_metadata', self.metadata, metadata)
metadata = self.metadata.lower()
active_strip = context.active_sequence_strip
metadata_value = getattr(active_strip.vsetb_strip_settings.metadata, metadata)
@ -85,6 +89,7 @@ class VSETB_OT_copy_metadata(Operator):
return {"FINISHED"}
class VSETB_OT_export_spreadsheet(Operator):
bl_idname = "vse_toolbox.export_spreadsheet"
bl_label = "Export Spreadsheet"