Setting the avatar mask on a runtime controller in code.

Hi all,
I want to set the avatar mask on the runtime animation controller but can’t seem to find anything in the API. I have one controller that runs all the animations for all characters. I’m not entirely sure how or why it’s currently working as the mask was setup using the first character I was given.
Any help would be appreciated.
Cheers.
Martin.

Anyone?