scripting: stateSet: add optional {send: false} flag

This commit is contained in:
jean-emmanuel 2023-11-22 10:15:40 +01:00
parent 2c97ac662c
commit a6237a0aac
3 changed files with 11 additions and 3 deletions

View file

@ -233,10 +233,13 @@ Returns a state object (`id:value`) for matching widget and all their children.
----
#### `stateSet(state)`
#### `stateSet(state, options)`
Loads a state object. If the event that triggered the script's execution was initiated by a user interaction, this will make the updated widgets send their value as well.
- `options` (optional): `object`, accepts the following items:
- `send: false`: prevents widgets from sending osc messages
----
#### `storage`