Is there a way to turn on a transitions hasExitTime on/off through code?

I was just wondering if i could in the middle of an animation switch the transitions hasExitTime through code, I looked it up and found nothing. Something like after the swing of the first sword attack animation i would like to turn hasExitTime off through code so that a mouse click would quickly transition to the second sword attack animation, otherwise the animation would continue. But I don’t want hasExitTime to be off constantly so that the user cant transition to the other animation before the swing of the first. And if there isn’t, whats the best way to deal with this sort of thing??

Hello Lyquifire,
Did you ever figure out how to do this? You posted it over two years ago.
I have just run into the same problem and when I happily found your post I went right to look up the answers. Then I saw there were none !! Bummer !