From 9a21a8057dc22ad4231a65676d4df2e7727fa26a Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 20 Nov 2018 20:01:07 +0100 Subject: [PATCH] docs: update widgets --- resources/docs/widgets-reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/docs/widgets-reference.md b/resources/docs/widgets-reference.md index 074c5a5f..ea12ca1b 100644 --- a/resources/docs/widgets-reference.md +++ b/resources/docs/widgets-reference.md @@ -452,7 +452,7 @@ | --- | --- | --- | --- | |

script

|||| |

condition

| `string` | 1 | When the widget receives a value, if this property return a falsy value, the script property won't be evaluated. If it's non-falsy, it will be evaluated normally. Formulas are given one extra variable in this context:
- `value`: the value received by the widget | -|

script

| `string` | "" | This property is evaluated each time the widget receives a value if condition is non-falsy. Formulas are given extras variables in this context:
- `value`: the value received by the widget
- `send(target, address, arg1, arg2, ...)`: function for sending osc messages (ignores the script's targets and the server's defaults unless `target` is `false`; ignores the script's `preArgs`)
- `set(id, value)`: function for setting a widget's value | +|

script

| `string` | "" | This property is evaluated each time the widget receives a value* if condition is non-falsy. Formulas are given extras variables in this context:
- `value`: the value received by the widget
- `send(target, address, arg1, arg2, ...)`: function for sending osc messages (ignores the script's targets and the server's defaults unless `target` is `false`; ignores the script's `preArgs`)
- `set(id, value)`: function for setting a widget's value



* Note: `value` or `linkId` can be used to receive other widgets' values | ### gyroscope