A set of name or preset name of expressions that will be overridden by VRMExpression.overrideBlink.
A set of name or preset name of expressions that will be overridden by VRMExpression.overrideLookAt.
A set of name or preset name of expressions that will be overridden by VRMExpression.overrideMouth.
A map from name to expression, but excluding preset expressions.
A map from name to expression, but excluding custom expressions.
Returns a clone of this VRMExpressionManager.
Copied VRMExpressionManager
Copy the given VRMExpressionManager into this one.
The VRMExpressionManager you want to copy
this
Return a registered expression.
If it cannot find an expression, it will return null
instead.
Name or preset name of the expression
Get a track name of specified expression. This track name is needed to manipulate its expression via keyframe animations.
Name of the expression
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();
Get the current weight of the specified expression.
If it doesn't have an expression of given name, it will return null
instead.
Name of the expression
Register an expression.
VRMExpression that describes the expression
Reset weights of all expressions to 0.0
.
Set a weight to the specified expression.
Name of the expression
Weight
Unregister an expression.
The expression you want to unregister
Update every expressions.
Create a new VRMExpressionManager.