The API function setFacialExpression(expression, amplitude, duration) allows you to dynamically alter the emotional expression of your character. This is done by passing three variables:
Expression- Name of the expression. A full list of variable mappings is available in our API reference manual.
Amplitute- How dramatic the expression. Its on a scale of 0 (not visible) to 1.0 (very expressive).
Duration- Time in seconds that the expression is maintained.
The API function clearExpressionList() clears all expressions.