motion.get_info
Overview
- Get metadata for a motion: total_length, loop_length, rate_scale, blend_out_time, sections (with names, start times, loop flags, next-section transitions), and the playing component (Root/Head/Hair). The character context (entity_id) determines which montage row is matched based on gender/age/posture.
Metadata
| Field | Value |
|---|---|
| Display | Get Motion Info |
| Category | motion |
| Access | UserCheat |
| Scope | B2Authority |
| Tags | — |
| Aliases | MotionGetInfo |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| anim_id | name | yes | — | Animation ID (from motion.list) |
| entity_id | entityId | no | — | Target entity ID (default: possessed) |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
anim_id | string | yes | Animation id |
montage_id | string | yes | Resolved montage row id |
group | string | yes | Montage group name |
total_length | float | yes | Total play length (seconds) |
loop_length | float | yes | Loop play length (seconds) |
rate_scale | float | yes | Playback rate scale |
blend_out_time | float | yes | Blend-out time (seconds) |
has_root_motion | bool | yes | Whether the montage has root motion |
playing_component | string | yes | Playing component (Root/Head/Hair) |
sections | array | yes | Montage sections |
sections[].name | string | yes | Section name |
sections[].next | string | yes | Next section name |
sections[].start_time | float | yes | Section start time (seconds) |
sections[].is_loop | bool | yes | Whether the section loops |
Usage
await inzoi.cli.execute('motion.get_info', {
anim_id: '',
entity_id: 0, // optional
});