# Starting / Ending an animation at a certain position?

**URL:** <https://discourse.threejs.org/t/starting-ending-an-animation-at-a-certain-position/43359>\
**Category:** Questions\
**Tags:** animation\
**Created:** [October 7, 2022, 4:54pm UTC](https://discourse.threejs.org/t/starting-ending-an-animation-at-a-certain-position/43359 "2022-10-07T16:54:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![naticarl](https://avatars.discourse-cdn.com/v4/letter/n/b4bc9f/32.png) [@naticarl](https://discourse.threejs.org/u/naticarl)\
**Post date:** [October 7, 2022, 4:54pm UTC](https://discourse.threejs.org/t/starting-ending-an-animation-at-a-certain-position/43359/1 "2022-10-07T16:54:28Z")

</div>

Hello,

I would like to start or end an animation clip from/to a certain position.  
In other words, I donot want to play the whole clip, but e.g only the second half.

Is this possible in three or do I have to edit the clip in blender?

Thanky you for your help,  
naticarl

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [October 8, 2022, 8:02am UTC](https://discourse.threejs.org/t/starting-ending-an-animation-at-a-certain-position/43359/2 "2022-10-08T08:02:10Z")

</div>

[AnimationUtils.subclip()](https://threejs.org/docs/index.html#api/en/animation/AnimationUtils.subclip) might be useful in this context.

---

<div class="post-metadata">

**Author:** ![naticarl](https://avatars.discourse-cdn.com/v4/letter/n/b4bc9f/32.png) [@naticarl](https://discourse.threejs.org/u/naticarl)\
**Post date:** [October 8, 2022, 9:25am UTC](https://discourse.threejs.org/t/starting-ending-an-animation-at-a-certain-position/43359/3 "2022-10-08T09:25:34Z")

</div>

> [@Mugen87](#):
>
> AnimationUtils.subclip

Thank you, that worked! 🙂

As documentation:

```
    clip3 = THREE.AnimationClip.findByName(obj3d, 'Show' );
    let subclip = THREE.AnimationUtils.subclip(clip3, 'Show', 10, 40)
    action3 = mixer3.clipAction( subclip );
    action3.setLoop(THREE.LoopRepeat, 20);  
    action3.play();

```
