set_animation
Controls AnimationMixer playback in the live browser preview: play, stop, or pause actions by clip name, seek mixer time, and set timeScale or action weight. Changes apply to the preview only and are recorded as pending changes for revert.
Instructions
[LIVE PREVIEW] Changes the scene in the browser only — NOT saved to source code, lost on reload. Recorded in pending_changes (→ code edits) and undoable with revert_changes. Control playback: mixer timeScale/time, action play/stop/pause/weight by clip name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| play | No | ||
| stop | No | ||
| time | No | Seek mixer time (not recorded as a change) | |
| clipName | No | Target action by clip name | |
| timeScale | No | Mixer time scale | |
| mixerIndex | No | From animation_details (default: 0) | |
| actionPaused | No | ||
| actionWeight | No | 0-1 | |
| actionTimeScale | No |