Fix export csv
parent
4a2dc9e55e
commit
4ae3f978bc
|
@ -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')
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue