Building animator blend tree in code

Hi, everyone!

Got some problem with animator. I have a model with animations made in Maya. The model is showing signs of Russian Sign Language (RSL). It’s a part of a translation system from the spoken language to RSL. So I need to build animation state tree depending on input I have. Even though I can get Blend Tree from Animator, I cannot change it. I can change it only in graphic editor, but I need to do it by scripts. Does anybody have ideas how to do this?

- YouTube - here is a prototype

try this Unity - Scripting API: BlendTree