i'm trying to use a matrix of knobs.
I Would like to send a range of value between 0 and 127. What is the good syntax to use in props ?
How to set up the ids to string ?
JS{{
var p = {}
var ids = ['A', 'B', 'C', 'D']
var colors = ['auto', 'red', 'cyan', 'orange']
p.id = ids[$]
p.label = ids[$]
p.colorWidget = colors[$]
/* doesn't work. What is the good syntax to use ?
p.range.min = 0
p.range.max = 127
*/
p.steps = 6
return p
}}
Ids are correctly set, what leads you to think otherwise ? My guess is the address that in this case does not default to /id since it's inherited from the matrix itself (with /$ appended to it).
yep. Thanks !
how to dynamically get the matrix id ? suppose i decide to change the matrix_id
something better than this wrong syntax p.address = {@parent(id]}+ ids[$]
Is it possible to get the same behaviour using the matrix address property ? Which syntax in that case ?