ID 565036 - Playhead auto-selection prevents hiero.ui.TimelineEditor functions like setSelection() from working

Follow

Problem summary:
Playhead auto-selection prevents hiero.ui.TimelineEditor functions like setSelection() from working
 
Customer reported version:
Nuke Studio N/A
 
Customer reported platform:
N/A
 
Steps to reproduce:
1) Launch Nuke Studio, and Import some footage.
2) Add the footage to the Timeline, and open the Script Editor window.
3) Run the following code and observe how the Clip is still soft selected, while the Track is not selected:

timeline = hiero.ui.getTimelineEditor(hiero.ui.activeSequence())track = timeline.sequence().videoTracks()[0]timeline.setTrackSelection(track)
4) Move the Playhead so it is no longer over the clip, the run the code again and observe how the Track is now selected:

 
Expected behavior:
It should be possible to change what is selected in the Timeline via Python, regardless of what is auto-selected by the Playhead.
 
Actual behavior:
The hiero.ui.TimelineEditor functions selectAll(), selectNone(), setSelection(), and setTrackSelection() do not work if anything is auto-selected by the Playhead.
 
Workaround:
No known workaround at this time
 
Reproduced by Support in:
Nuke 15.0v3 - Windows 11, macOS 13 Ventura
Nuke 14.1v1 - Windows 11
 
Earliest version tested:
Nuke 14.1v1 - This feature (Playhead auto-selection) did not exist before this version

    We're sorry to hear that

    Please tell us why