docs: mention how scripts can receive other widgets' values (#423)

This commit is contained in:
jean-emmanuel 2018-11-20 19:58:34 +01:00
parent 320dfdc860
commit af3e094316

View file

@ -18,10 +18,11 @@ class Script extends Widget {
'- `value`: the value received by the widget'
]},
script: {type: 'string', value: '', help: [
'This property is evaluated each time the widget receives a value if condition is non-falsy. Formulas are given extras variables in this context:',
'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'
'- `set(id, value)`: function for setting a widget\'s value',
'', '* Note: `value` or `linkId` can be used to receive other widgets\' values'
]}
})