Is there a way to retrieve the duration of an animation in three.js?
For example, consider the following code snippet:
var mixer = new THREE.AnimationMixer(gltf.scene)
gltf.animations.forEach((clip)) => {
let animation = mixer.clipAction(clip)
animation.setLoop(THREE.LoopOnce)
animation.clampWhenFinished = true
animation.play()
}