Set Expression State

Set the expression state of the currently loaded model
Set Expression State Dialog
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 to 1
Fade Time
number required

Enter the fade time (in ms)

Variables

NameTypeDescription
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)
public bool VTubeStudioDeactivateExpression(string expressionFile)