Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'uuid')

Hello everyone, I can’t get any further with an error. I have included a .glb file, when I call it an error occurs.

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘uuid’)

I don’t know if this error is because of the .glb file or because of the embed. You can see cms.4net.de/three-01/test.html
Anyone have any idea?

Thanks

The problem is the following line in your code:

var action = mixer.clipAction(gltf.animations[1]);

You try to playback an animation however the animations array is empty. Meaning to animations are defined in your glTF asset.

Hi Mugen87,
thank you for your answer. The glb file contains an animation that I want to play while scrolling. But I don’t know exactly if I’m using the right script for this, unfortunately I don’t know enough about it yet. Can you help me?