Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
How do I get the duration of an animation in three js?

How does one get the duration of an animation in three.js?

Let's say we have a sample like this one,

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()
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The duration of your animation can be returned by clip.duration, inside of the forEach loop. You can find out more about this on the three.js docs on the AnimationClip. Keep in mind that this is returned in seconds. https://threejs.org/docs/#api/en/animation/AnimationClip.duration

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!