Starting / Ending an animation at a certain position?

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

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);  
    action3.play();
1 Like