This command will add an event to the path which will be triggered when the path reaches the specified time (in seconds) from the start. The time should be between 0 and
<animationpath>.getDuration. The event will be triggered on every loop.
A
viz.PATH_EVENT will be triggered with the specified event name and animation path.
# Create event when at 3 seconds
path.addEventAtTime('second_3', 3.0)
# Register callback when path is 3 seconds from start
def onThreeSeconds():
print('3 seconds from start')
vizact.onPathEvent(path, 'second_3', onThreeSeconds)