Starting / Ending an animation at a certain position?


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,

AnimationUtils.subclip() might be useful in this context.

Thank you, that worked! :slight_smile:

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);;
1 Like