How to play and hold on a single frame of an animator clip

Hello all,
I am trying to find a way to play and keep playing individual frames from my animation clip in the animator state machine such that an object will play through the animation frame by frame only changing frames when it is instructed to through my script. Ive been stuck on this for days now and would really appriciate any help I could get

Thanks in advance

Finally solved it if anyone is curious
anim is the animator that has the animation in it
animationName is a var holding the clips name
animTime is the time in the animation i want to play

 anim.Play(animationName, -1, animTime);
 anim.Update(0f);