25. Use animation states and imported clips
Animation states give your project readable names such as idle, walk, nod and explain. They map to the real clips in the assigned model. Verify those mappings in Character Designer before scheduling gestures.
Figure 14. The bundled characters list mapped states. Select a state to inspect its exact clip.
| Action / value | Meaning |
|---|---|
| SetCharacterState: stateId nod | Requests the character’s mapped nod state. |
| PlayAnimation: clip nod | Can use the mapped state where available; imported clip names must match real content. |
| Block Duration 0.5 | A place in the schedule; it does not retime or trim the source model clip. |
{
"type":"SetCharacterState",
"entityId":"player",
"stateId":"nod"
}Place the nod at 14.7 seconds. Let the earlier speech finish first. Automatic talk animation and a gesture on the same actor can otherwise replace one another.
If the actor slides or changes position unexpectedly, inspect root motion, model alignment and the state mapping. A timeline cannot supply an animation the model does not contain.
