Threepp.VRMAnimationLoader¶
VRM animation loader
Members¶
Constructors¶
Methods¶
VRMAnimationLoader¶
Constructor
load¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
osPath |
|
Description
Loads from an OS path (for debugging) -> VRMAnimation
loadStorage¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
storageName |
|
Description
Loads from a Kirikiri storage name (for production) -> VRMAnimation
exportPoseSeq¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
boneNames |
|
[bone name,…] (nBones) |
times |
|
[seconds,…] (nKeys) |
quatsFlat |
|
[qx,qy,qz,qw,… in (key,bone) row-major order] (nKeysnBones4) |
hipsFlat |
|
Hips offsets [dx,dy,dz,…] (nKeys*3; an empty array = no track) |
exprNames |
|
Expression names [] (omitted/empty = no expression track) |
exprWeightsFlat |
|
Expression weights (expr-major flat array, nExpr*nKeys) |
path |
|
Output storage name (a bare name goes directly under data/) |
Description
Writes a pose sequence to a single VRMA file (.vrma = glTF-JSON + base64).
The input is flat parallel arrays. The written file can be read back with loadStorage.