mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
flame: enhancing code of api lib
This commit is contained in:
parent
65fe3a28bb
commit
42bdd8db7f
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue