Set Expression State
Set the expression state of the currently loaded model

Set Expression State Dialog
Parameters
Expression
Selection required
Select an expression
State
Number
Optionally select a specific button state to modify
- By default, all sub-actions will modify the first button state,
0
- For example, to modify the 2nd state of an Action Switch, set
State
to1
Fade Time
number required
Enter the fade time (in ms)
Variables
Name | Type | Description |
---|---|---|
Example Value: True/False indicator whether the expression state change has been successful or not |
C# Usage
public bool VTubeStudioActivateExpression(string expressionFile, Single fadeTime = 0.25)
CPH.VTubeStudioActivateExpression(expressionFile);
CPH.VTubeStudioActivateExpression(expressionFile, fadeTime);
public bool VTubeStudioDeactivateExpression(string expressionFile)
CPH.VTubeStudioDeactivateExpression(expressionFile);