This command will add an event to the path which will be triggered when the path reaches the specified control point index.
A
viz.PATH_EVENT will be triggered with the specified event name and animation path.
# Create event at second control point
path.addEventAtControlPoint('second point', 1)
# Register callback when second point is reached
def onSecondPointReached():
print('Second point reached')
vizact.onPathEvent(path, 'second point', onSecondPointReached)