# scene.stopAnimation() not working

**URL:** <https://forum.babylonjs.com/t/scene-stopanimation-not-working/36446>\
**Category:** Bugs\
**Tags:** animation\
**Created:** [December 10, 2022, 11:09pm UTC](https://forum.babylonjs.com/t/scene-stopanimation-not-working/36446 "2022-12-10T23:09:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![satguru](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@satguru](https://forum.babylonjs.com/u/satguru)\
**Post date:** [December 10, 2022, 11:09pm UTC](https://forum.babylonjs.com/t/scene-stopanimation-not-working/36446/1 "2022-12-10T23:09:36Z")

</div>

> **[Scene | Babylon.js Documentation](https://doc.babylonjs.com/typedoc/classes/BABYLON.Scene#stopAnimation)**
>
> Represents a scene to be rendered by the engine. \[API\]

scene.stopAnimation(target) works  
scene.stopAnimation(target,animation-name) does not work

see

> **[Babylon.js Playground](https://playground.babylonjs.com/#IQN716%231747)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [December 11, 2022, 9:19pm UTC](https://forum.babylonjs.com/t/scene-stopanimation-not-working/36446/2 "2022-12-11T21:19:07Z")

</div>

`scene.stopAnimation` takes the name of an animation, not the name of a range you created with `skeleton.createAnimationRange`.

If you want to stop all animations corresponding to the range “walk”, you will have to stop all 29 animations by name. For eg, one of them is called “skeleton:mixamorig:hips:animation”, so to stop it, do `scene.stopAnimation(skeleton,"skeleton:mixamorig:hips:animation");`

I guess you would need a `skeleton.stopAnimation` to stop all animations at once but this method does not exist… Maybe that would be nice to add it? Or maybe there’s another simple way to do it, but I don’t know enough about the animation system to know.

---

<div class="post-metadata">

**Author:** ![satguru](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@satguru](https://forum.babylonjs.com/u/satguru)\
**Post date:** [December 15, 2022, 12:52am UTC](https://forum.babylonjs.com/t/scene-stopanimation-not-working/36446/3 "2022-12-15T00:52:46Z")

</div>

Ok. That makes sense.  
I guess I could use the animatable returned by scene.beginAnimation() to stop just that animation.
