This command will add an event to the path which will be triggered when the path reaches the specified distance from the start. The distance should be between 0 and
<animationpath>.getDistance. 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 meter 2 is reached
path.addEventAtDistance('meter_2', 2.0)
# Register callback when path is 2 meters from start
def onSecondMeter():
print('2 meters from start')
vizact.onPathEvent(path, 'meter_2', onSecondMeter)