Hey,
inside a variable I want to do some math.
And then set the names of a matrix button with each value
is it possible in the variable to do something like :
set('matrix_01/1.label', n2)
Hey,
inside a variable I want to do some math.
And then set the names of a matrix button with each value
is it possible in the variable to do something like :
set('matrix_01/1.label', n2)
set() only sets a widget's value, you'd need to inject a custom variable in the matrix' props
to expose the button's label and be able to modify it with setVar
JS{
// matrix.props
var props = {}
props.label = 'VAR_{name}' || 'default_label'
// using underscored VAR_ so that it's scoped to the child
}
so
// anywhere.onValue
setVar('matrix_01/1', 'name', 'hellow there')