Constructors

Properties

blinkExpressionNames: string[] = ...

A set of name or preset name of expressions that will be overridden by VRMExpression.overrideBlink.

lookAtExpressionNames: string[] = ...

A set of name or preset name of expressions that will be overridden by VRMExpression.overrideLookAt.

mouthExpressionNames: string[] = ...

A set of name or preset name of expressions that will be overridden by VRMExpression.overrideMouth.

Accessors

Methods

  • Get a track name of specified expression. This track name is needed to manipulate its expression via keyframe animations.

    Parameters

    • name: string

      Name of the expression

    Returns null | string

    const trackName = vrm.expressionManager.getExpressionTrackName( 'blink' );
    const track = new THREE.NumberKeyframeTrack(
    name,
    [ 0.0, 0.5, 1.0 ], // times
    [ 0.0, 1.0, 0.0 ] // values
    );

    const clip = new THREE.AnimationClip(
    'blink', // name
    1.0, // duration
    [ track ] // tracks
    );

    const mixer = new THREE.AnimationMixer( vrm.scene );
    const action = mixer.clipAction( clip );
    action.play();