What is the correct way to use @{} in a script ?
Trying :
JS{{
var adrs = "/@{loop_nmbr}/test"
send(false, adrs)
}}
Result :
OSC sent: { address: '/__VARS.VAR_999/test', args: [] }
What is the correct way to use @{} in a script ?
Trying :
JS{{
var adrs = "/@{loop_nmbr}/test"
send(false, adrs)
}}
Result :
OSC sent: { address: '/__VARS.VAR_999/test', args: [] }
https://openstagecontrol.ammd.net/docs/advanced-property-syntax/#javascript-js-code
In this context,
@{} / OSC{}
are seen as variables, not as the value they hold
This means you need to concatenate these strings manually:
var adrs = "/" + @{loop_nmbr} + "/test"
Thank’s for your helpful advices !