docs: a bit more accurate
This commit is contained in:
parent
9a21a8057d
commit
613cf36e80
2 changed files with 2 additions and 2 deletions
|
|
@ -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<br/><br/><br/><br/>* Note: `value` or `linkId` can be used to receive other widgets' values |
|
||||
| <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` properties can be used to receive other widgets' values |
|
||||
|
||||
### gyroscope
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class Script extends Widget {
|
|||
'- `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'
|
||||
'', '* Note: `value` or `linkId` properties can be used to receive other widgets\' values'
|
||||
]}
|
||||
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue