I have tried tearing this apart and putting in additional meters and measures to get the data to show me what's wrong.
I am missing something - but I can't help but feel like I almost have it.
Can I get another set of eyes to help me figure out what's wrong.
The core of it is all I really need - Random Measure / changes shades of grey on the background shape...
If there is a better way I'm always open for suggestions.
"10":"A0A0A0" substitutes the result of "1":"101010" substitute again, so finally "1" is substituted to "A0A0A0A0A0A0A0A0A0".
To avoid it, specify start and end of line by "^" and "$". This issue does not seem to occur in other substitutions, but "to make sure".
mak_kawa-
Looking at your suggestions, it appears you graded my technique on the bits of code I threw together to figure out why the bones of this aren't working.
I'm excited by the comment "modified code works" ... I don't see it yet.
The goal is to have the random generated color code change the fill color of the MeterBack Shape.
The string was an attempt to see what the values of different parts of the data are... it'll be deleted if I ever get the bones working.
mak_kawa wrote: ↑December 16th, 2019, 9:01 am
Some explanation on the RegExp substitute.
"10":"A0A0A0" substitutes the result of "1":"101010" substitute again, so finally "1" is substituted to "A0A0A0A0A0A0A0A0A0".
To avoid it, specify start and end of line by "^" and "$". This issue does not seem to occur in other substitutions, but "to make sure".
Good to know, I had read that before, but haven't run into it yet as none of the substitution is actually happening in my code... the measure returns either nothing (padding square 10x10) or the numeric value of the random formula
That issue is what I would consider polish once the mechanics are functioning. My understanding is that it would still return some string value, even a wrong one if that part of the code was working.