How can I play animations strictly from C++?

I find that this way montage and blend space are exclusive. You won’t be able to play montage in c++ after you play blend space in c++. I tried to call SetAnimationMode, it works. but you lose the blending (transition between the two). Any ideas?