ID 605461 - The kSelectionChanged event will trigger when scrubbing the Playhead during Playback, even if the selection does not change

Follow

Problem summary:
The kSelectionChanged event will trigger when scrubbing the Playhead during Playback, even if the selection does not change
 
Customer reported version:
Nuke Studio 16.0v1
 
Customer reported platform:
N/A
 
Steps to reproduce:
1) Launch Nuke Studio and navigate to File > Import File(s)... to import some footage.
2) Create a new Sequence, and then add a Clip to the Timeline.
3) Open the Script Editor window and run the following code to register interest in the kSelectionChanged event:

from hiero.core import events def printer(event):     print (event) events.registerInterest("kSelectionChanged", printer)
4) Press Play in the Viewer, then click and drag the Playhead to scrub to a different time, and observe how kSelectionChanged is triggered but the selection isn't changing:

 
Expected behavior:
The kSelectionChanged event should only be triggered when a selection of items (e.g. Shots, Clips) changes.
 
Actual behavior:
When a TrackItem has been auto-selected by the Playhead, the kSelectionChanged event will fire periodically if Playback is active and the Playhead is scrubbed to a different frame. This does not occur if a TrackItem has been manually selected.
 
Workaround:
No known workaround at this time
 
Reproduced by Support in:
Nuke Studio 16.0v4 - Windows 11, macOS 14 Sonoma
Nuke Studio 15.2v1 - Windows 11
Nuke Studio 15.1v1 - Windows 11
Nuke Studio 15.0v1 - Windows 11
Nuke Studio 14.1v1 - Windows 11, macOS 14 Sonoma
 
Earliest version tested:
Nuke Studio 14.1v1 - This feature (Playhead auto-selection) did not exist before this version

    We're sorry to hear that

    Please tell us why