Freeze animation, how to?

I want to freeze animation in one position related to external value using mecanim. How do i do that? Thanks in Advance.

Animator.speed(0) will pause it where it is.
It works pretty well for freezing effects if I do say so myself. The best part is that it can range anywhere from 0.0001 all the way up to crazy time.