set_variable_value
Set a variable's value for a specific mode. Value can be boolean, number, string, color (RGBA), or an alias.
Instructions
Set a variable's value for a mode. value is a boolean / number / string, a color { r, g, b, a } (0–1), or an alias { type: "VARIABLE_ALIAS", id }. Returns { ok, variableId, name }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | boolean | number | string | { r,g,b,a } | { type:"VARIABLE_ALIAS", id } | |
| modeId | Yes | Mode id (from the collection) | |
| variableId | Yes | Variable id |