How do I change or add new animations for my avatar? #268
-
I'd like to customize the animations that are used for my avatar. How do I go about doing that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The easiest way to customize your avatar's animations is to use Mixamo.
player.setAvatar(`
<FireBoxRoom>
<assets>
<assetobject id="body" src="https://models.readyplayer.me/61443f62dae8ab132c0a62d8.glb" />
<assetobject id="avatar_animations" src="https://assets.metacade.com/james/readyplayerme/animations.glb" />
<assetobject id="anim_seated" src="https://your.domain/animation-pack-seated.glb" />
<assetobject id="anim_sports" src="https://your.domain/animation-pack-sports.glb" />
<assetobject id="anim_dancing" src="https://your.domain/animation-pack-dancing.glb" />
</assets>
<room>
<ghost body_id="body" bone_head="Head" morphtarget_mouth="mouthOpen" morphtarget_eyes="eyesClosed" animation_extras="anim_seated anim_sports anim_dancing" />
</room>
</FireBoxRoom>
`) Note that the following animation names are used for built-in actions:
You can set these default animations by putting them all into the If you have completely custom animations, for example, from motion capture or AI generation, the process should be very much the same - import into blender, name them appropriately, and then "push back" all of the animations onto the Armature object. Note that the bone names should match the bone names in whichever avatar file you'll be using them - they don't have to follow the same skeletal structure as Mixamo, unless you're trying to mix and match with animations you got from Mixamo or Ready Player Me. |
Beta Was this translation helpful? Give feedback.
The easiest way to customize your avatar's animations is to use Mixamo.