title: Three.js How to check when animation is end?
body: <p>If I write something like this:</p>
  
  <pre><code>function renderuj(){           
      scene.renderer.setClearColor(0xeeeeee, 1);    
      ob1.animation.update(0.5);
      ob2.animation.update(0.5);
      scene.renderer.render(scene.scene, scene.camera);
  
      animationFram = requestAnimationFrame(renderuj);
  }
  </code></pre>
  
  <p>the animation working in loop.
  But I want to play only once and no more.
  How to do that</p>
  
  <p>inside the .js file where is 3D animation/object we can see this</p>
  
  <pre><code>animation" : [{"name":"test1","fps":24,"length":10
  </code></pre>
  
  <p>and I try add to my code something like this</p>
  
  <pre><code>if(temp &lt; 10)
      temp++;
  else
      cancelRequestAnimFrame(animationFram );
  </code></pre>
  
  <p>but I have only half of animation</p>