Expressions
VNyan's Expression menu allows you to create Blendshape rulesets or conditions to trigger or control other blendshapes. For instance, if you want a "laughter" expression to activate when both your eyes are closed and your mouth is smiling and open, you could set an expression that does this.
Expressions are evaluated after tracking. This means that the input values for the Expressions are retrieved before expressions are applied, and tracking blendshape values are then overwritten. For example, when using the multiplier output to reduce the size of the A blendshape if the model is smiling, the original A value will be based on the raw tracking value, not the A blendshape value from last frame. This ensures that the blendshape value is modified as intended each frame.
Blendshape Conditions
You can set multiple blendshapes to control whether the expression is turned on or off. When multiple Blendshape Conditions are set, all must be met to get an output.
| Name | Description |
|---|---|
| Blendshape Name | The name of the blendshape whose value will be check to determine output. |
| Min Value | The minimum blendshape value on the named blendshape required in order to activate the output. |
| Max Value | The maximum blendshape value on the named blendshape allowed to activate an output. |
Output Values
Your expression can either set a static value of different blendshapes as long as the Blendshape Condition is met (for instance, if browInnerUp >70, set Surprised blendshape to 100), or it can scale dynamically active blendshapes by a multiplier (for example, if Smile blendshape > 70, A blendshape should be scaled by 0.5). Output Values have the following settings:
| Name | Description |
|---|---|
| Type | Is either set to Set Value or Multiply. Set Value assigns a static value when the Blendshape Condition is met. Multiply scales the output value by a specified multiplier when the Blendshape Condition is met. |
| Blendshape | The name of the target blendshape that should be altered when the Blendshape Condition is met. |
| Value | Used for Set Value. Specify the value that the target blendshape should be set to when the Blendshape Condition is met. |
| Multiplier | Used for Multiply. Specify the factor that unmodified blendshape values should be multiplied by. |
| Min/Max Value | Used for Multiply. Set the minimum and maximum blendshape values that are assigned to the output blendshape while the Blendshape Condition is met. For example, if Min and Max value are set to 30 and 70 respectively, output blendshape values after multiplication lower than 30 will be set to 30, and higher than 70 will be set to 70, so long as the Blendshape Condition is true. If the Blendshape Condition is not true, output blendshape values can exceed this range. |
| Smooth Seconds | Used by both Set Value and Multiply. Set how fast the output blendshape value transitions to the target value when the Blendshape Condition first changes from false to true or vice versa. |