Skip to main content

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

FieldValue
DisplayGet Motion Info
Categorymotion
AccessUserCheat
ScopeB2Authority
Tags
AliasesMotionGetInfo

Parameters

NameTypeRequiredDefaultDescription
anim_idnameyesAnimation ID (from motion.list)
entity_identityIdnoTarget entity ID (default: possessed)

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
anim_idstringyesAnimation id
montage_idstringyesResolved montage row id
groupstringyesMontage group name
total_lengthfloatyesTotal play length (seconds)
loop_lengthfloatyesLoop play length (seconds)
rate_scalefloatyesPlayback rate scale
blend_out_timefloatyesBlend-out time (seconds)
has_root_motionboolyesWhether the montage has root motion
playing_componentstringyesPlaying component (Root/Head/Hair)
sectionsarrayyesMontage sections
sections[].namestringyesSection name
sections[].nextstringyesNext section name
sections[].start_timefloatyesSection start time (seconds)
sections[].is_loopboolyesWhether the section loops

Usage

await inzoi.cli.execute('motion.get_info', {
anim_id: '',
entity_id: 0, // optional
});