Detect the END of a custom clip

Hi all,

I’ve started creating my own custom clips and tracks (basically following this blog). and, though I’ve found various way to call methods or fire events when a clip starts, I would now like to do the same when my custom clip ends (while the playable director is playing).

Has someone been able to achieve this ?

Thanks in advance for your help !

Here you go, someone posted a nice snippet!