Skip to main content
POST
/
animation
/
load
load a glTF file with animations
curl --request POST \
  --url http://localhost:3917/animation/load \
  --header 'Content-Type: application/json' \
  --data '
{
  "path": "assets/characters/hero.glb"
}
'
{
  "animations": [
    "idle",
    "run"
  ],
  "meshes": 1,
  "ok": true,
  "skeleton": true
}

Body

application/json

glTF source: path to a .gltf/.glb file whose clips and skeleton are added to the AnimationLibrary.

The body is of type any.

Response

200 - application/json

Loaded clip names, mesh count, and whether a skeleton was found; returns an error field on a missing path or load failure.