Patch motions into a VRChat avatar’s controllers and expressions menu, and let a motion’s recorded gestures drive its own gesture expressions. Non-destructive: everything happens when the avatar is built (upload, or entering Play mode), on NDMF’s copies; your controllers, menus and parameters are never changed.
Requires the VRChat Avatars SDK and NDMF (Modular Avatar brings NDMF). Works next to Modular Avatar, VRCFury, FaceEmo, ComboGesture, GoGoLoco and Avatar Optimizer.
https://rappyr.github.io/Bavi-VPM/index.json) — then add Bavi Motion Patcher to your project in VCC. Updates show
up there too.com.bavi.motion-patcher-<version>.zip from the
releases and unzip it into your project’s Packages folder as
Packages/com.bavi.motion-patcher, or import the .unitypackage. Install NDMF (or Modular Avatar) too.The inspector shows which FX layers read gestures, warnings, the last build’s result and the package version.
Bavi/Motion/Slot (8 bits): 0 = nothing, 1..8 = that motion. Picking another
cross-fades.
Bavi/Motion/Height (8 bits, the middle = as recorded, ±1 m by default),
to lay a motion on a couch or sit it on a chair or a prop. It moves a VRChat parent constraint’s source; the
constraint sits on the Armature (the hips’ parent) and runs after the Animator, so the whole pose moves, for
everyone, and only while a motion plays. For where and which way a motion plays, stand and face there before
starting it: it plays relative to you.Bavi/Motion/GestureLeftMix = the real GestureLeft, or Bavi/Motion/GestureLeft while
Bavi/Motion/Playing is on (same for the right hand and both weights). Everything in the avatar’s FX that reads a
gesture reads the mix instead: Any State, entry, exit and sub-state-machine transitions (== k becomes the range
k±0.5, != k two transitions), blend tree parameters and motion time / speed (FaceEmo’s and ComboGesture’s analog
fist). With nothing playing it selects exactly what it did before. Only the mix reads the real gestures afterwards,
so they are declared as floats in FX (VRChat converts built-in parameters to the type a controller declares).
Runs early in NDMF’s Optimizing phase, so it sees the final FX after Modular Avatar and VRCFury merged theirs, and
before Avatar Optimizer (which merges the layer into its own when there are no motions).Synced cost: 8 bits for the motions, 8 for the Height dial. Everything else is local: every client plays the same clips from the synced slot, so everyone sees the same thing.
Any humanoid clip works as a body clip. For gestures, the FX clip animates these floats (all under Bavi/Motion/):
| Parameter | Value |
|---|---|
Playing | 1 for the whole clip |
GestureLeft, GestureRight | 0–7, VRChat’s gesture numbers (stepped) |
GestureLeftWeight, GestureRightWeight | 0–1 (the fist’s trigger) |
VRChat writes its own GestureLeft/Right every frame and an animation can only drive floats, which is why the
gestures travel under these names. If you play such a clip in a layer of your own instead, make sure
Bavi/Motion/Playing returns to 0 when it stops.
Go/Float) is its fly / float feature (it lifts the whole player on a collider,
upwards only, and drives its own Action states), so it isn’t used; it still works next to this.MIT, see LICENSE.md.
com.bavi.motion-patcher
https://github.com/Rappyr/Bavi-MotionPatcher#readme
1.0.1 (変更履歴)
2022.3 以降
なし
なし