docs: update widgets

This commit is contained in:
jean-emmanuel 2018-11-20 20:01:07 +01:00
parent be1826cfd5
commit 9a21a8057d

View file

@ -452,7 +452,7 @@
| --- | --- | --- | --- |
| <h4 class="thead2" id="script_script">script<a class="headerlink" href="#script_script" title="Permanent link"></a></h4> ||||
| <h4 id="script_condition">condition<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#script_condition" title="Permanent link"></a></h4> | `string` | <code>1</code> | 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:<br/>- `value`: the value received by the widget |
| <h4 id="script_script">script<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#script_script" title="Permanent link"></a></h4> | `string` | <code>""</code> | This property is evaluated each time the widget receives a value if condition is non-falsy. Formulas are given extras variables in this context:<br/>- `value`: the value received by the widget<br/>- `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`)<br/>- `set(id, value)`: function for setting a widget's value |
| <h4 id="script_script">script<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#script_script" title="Permanent link"></a></h4> | `string` | <code>""</code> | This property is evaluated each time the widget receives a value* if condition is non-falsy. Formulas are given extras variables in this context:<br/>- `value`: the value received by the widget<br/>- `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`)<br/>- `set(id, value)`: function for setting a widget's value<br/><br/><br/><br/>* Note: `value` or `linkId` can be used to receive other widgets' values |
### gyroscope