ID 216528 - TrackItem removed by keyboard "cut" fails to trigger kSelectionChanged ​event.

Follow

Problem summary
TrackItem removed by keyboard "cut" fails to trigger kSelectionChanged ​event.  

reference : Hiero Python Dev Guide > Events > Event Types > View event types​ > kSelectionChanged 

"triggered when a selection of items (e.g. Shots, Clips) in the view changes​"

Customer reported version
Nuke9.0v8

Customer reported platform
Windows 7

Steps to reproduce

1) Open Nuke Studio, import a clip and drag it to the Timeline

2) Open a script Editor panel and paste and run this


def selection_change(event):
    print 'selection changed!'

hiero.core.events.registerInterest("kSelectionChanged", selection_change)

(This should cause Nuke to print 'selection changed!' on subsequent actions that trigger the event)


3) simply selecting the clip, or deleting it (other than with ctrl+x) will print 'selection changed!'​

4) use the keyboard to delete the TrackItem using ctrl+x  (or cmd+x on Mac) and Nuke will not print 'selection changed!'​

Reproduced by support
repro'd on OS 10.10.5  Nuke9.0v1, 10.0v1, 10.0v2​

Expected behaviour
expectation is that the event is triggered by the cut action (after all, it does delete the TrackItem)

Actual behaviour
nothing happened
 

    We're sorry to hear that

    Please tell us why