Animations triggered by Motion sense

Hi so this is probably not a beginner level question but I am a beginner and its been super frustrating to figure this out
So what I am trying to create is a series of animations that play based on gesture input. So for example if there is a character animation you need to wave at the screen in order for that animation to play and so far I’ve used media pipe plugin to trace motion and gestures and a switch top to play or not play an animation based on the gesture
There might be a better way to do this and I’m very open to hearing what that might be but right now the problem I’ve been having is loops. So the animation just plays from whatever point it’s at when the right gesture is made. I feel like this can be an easy fix if I am able to trigger the videos (From the start) based on gesture input
Now the second problem is sequencing which means after one action is performed and the relative animation is played it needs to move to the next animation that requires a different gesture to play.
Im not sure if TouchDesigner is capable of this but surely it is, Im just really new to all of it so if anyone could give me some insight on the correct methods to go about this I would highly appreciate! I have around 8 weeks left to finish this project and im stressssin