How to use the animation that comes with the .gltf file that i downloaded in sketchfab

npx gltfjsx scene.gltf --transform

it creates a ready made component and a small animation set up using drei/useAnimations. it looks like this: GLTF Animations - CodeSandbox useAnimation is a small helper around three.mixer, removing all the boilerplate and creating clips automatically.

see GitHub - pmndrs/gltfjsx: 🎮 Turns GLTFs into JSX components

ps. if gltfjsx doesn’t create actions for you, then the gltf has none, which might be the reason why your code above didn’t work.

1 Like