diff --git a/operators/operators.py b/operators/operators.py index 6db9daf..3e05e4a 100644 --- a/operators/operators.py +++ b/operators/operators.py @@ -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"