State:Closed|icon_bug|icon_nuke|database:public|Resolution:Fixed|TargetRelease:13.2v5|BugID:502066|
Problem summary
hiero.ui.getTimelineEditor returns an object, even when the Timeline Editor for that sequence is closed
The developer documentation says that it should return None, if no appropriate editor is found:
https://learn.foundry.com/hiero/developers/latest/HieroPythonDevGuide/api/api_ui.html?highlight=gettimelineedi#hiero.ui.getTimelineEditor
Customer reported version
hiero.n/a
Customer reported platform
Linux, CentOS 7
Steps to reproduce
1) Open Hiero/Nuke Studio
2) Create two sequences in the bin. Right Click>New>New Sequence x 2
3) Double click one of the sequences to open it in the timeline editor
4) In the Script Editor, run the following code:
for sequence in hiero.core.projects()[0].sequences():
print(hiero.ui.getTimelineEditor(sequence))
for sequence in hiero.core.projects()[0].sequences():
timelineEditor = hiero.ui.getTimelineEditor(sequence)
if timelineEditor.window().isVisible():
print (timelineEditor)
else:
print (None)
We're sorry to hear that
Please tell us why