Check if blender animation is done

I have imported a gltf model with an animation. I am able to play the animation but I would like to trigger a function when this animation is completed playing. How do I do this?

Grouping Animations | Babylon.js Documentation (babylonjs.com)

3 Likes