This command will add an event to the path which will be triggered when the path reaches the end of one full loop.
A
viz.PATH_EVENT will be triggered with the specified event name and animation path.
# Create event when end of path is reached
path.addEventAtEnd('end')
# Register callback when end is reached
def onEndReached():
print('end reached')
vizact.onPathEvent(path, 'end', onEndReached)