flame: enhancing code of api lib

This commit is contained in:
Jakub Jezek 2022-01-11 15:24:09 +01:00
parent 65fe3a28bb
commit 42bdd8db7f
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -445,6 +445,8 @@ def get_sequence_segments(sequence, selected=False):
for segment in track.segments:
if segment.name.get_value() == "":
continue
if segment.hidden:
continue
if (
selected is True
and segment.selected.get_value() is not True
@ -519,7 +521,7 @@ def _get_shot_tokens_values(clip, tokens):
def get_segment_attributes(segment):
if str(segment.name)[1:-1] == "":
if segment.name.get_value() == "":
return None
# Add timeline segment to tree