set_variable_value
Set a variable's value for a specific mode. Value must match the variable's resolved type: boolean, number, string, color, or alias.
Instructions
Set a variable's value for one mode (modeId comes from the variable's collection). value must match the variable resolvedType: a boolean, a number (FLOAT), a string, a color { r, g, b, a } (0–1), or an alias { type: "VARIABLE_ALIAS", id } pointing at another variable. Create the variable first with create_variable. 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 |