Closed akaztp closed 3 years ago
Could you please provide more information and step by step instructions to reproduce the issue ?
I've updated the first post. It was a too soon "ENTER" typo...
You've hit a limitation with the advanced syntaxes + matrices : to determine whether the props
property has changed, OSC evaluates its content with $
equals to 0
and compares it to the last cached result, hence the issue not occurring when pushing the first button (whose index is 0
).
To circumvent the issue you can either:
force the props
property to always change whenever it's evaluated by injecting a randomly generated number in it ( what triggers the evaluation is the value updates from matrix_source
because of the presence of @{matrix_source}
):
{
"label": "#{(@{matrix_source})[$]}",
"_rand": #{Math.random()}
}
use the clone matrix pattern as seen in "clone_and_variables.json" from these examples.
Thanks for your fast and thorough response.
I've managed to solve it by adding the props "_forceUpdate": @{matrix-source}
instead of the random!
Works too ! :)
How to reproduce:
bug-session.txt
Thank you!