diff --git a/operators/spreadsheet.py b/operators/spreadsheet.py index 2f7619f..fc3cc44 100644 --- a/operators/spreadsheet.py +++ b/operators/spreadsheet.py @@ -531,6 +531,9 @@ class VSETB_OT_export_spreadsheet(Operator): else: cells = spreadsheet.cells rows.append([cell.name for cell in cells]) + + #print(rows) + #raise Exception('') separator = spreadsheet.separator.replace('\\n', '\n').replace('\\t', '\t').replace('\\r', '\r') delimiter = spreadsheet.delimiter.replace('\\n', '\n').replace('\\t', '\t').replace('\\r', '\r') diff --git a/sequencer_utils.py b/sequencer_utils.py index 9ec185b..6a7d5e0 100644 --- a/sequencer_utils.py +++ b/sequencer_utils.py @@ -49,7 +49,7 @@ def get_strips(channel=0, selected_only=False): if isinstance(channel, str): channel = get_channel_index(channel) - strips = [s for s in scn.sequence_editor.sequences_all if s.channel==channel] + strips = [s for s in scn.sequence_editor.sequences if s.channel==channel] if selected_only: strips = [s for s in strips if s.select] diff --git a/ui/properties.py b/ui/properties.py index db04120..7abe363 100644 --- a/ui/properties.py +++ b/ui/properties.py @@ -311,12 +311,14 @@ class Project(PropertyGroup): def set_spreadsheet(self): + cell_names = ['Sequence', 'Shot', 'Nb Frames', 'Description'] if self.type == 'TVSHOW': cell_names.insert(0, 'Episode') # Export SpreadSheet spreadsheet = self.spreadsheet_export + spreadsheet.cells.clear() for cell_name in cell_names: cell = spreadsheet.cells.add() cell.name = cell_name