I’m trying to simulate something that I thought would be easy: a circular string of individually addressable LEDs changing in response to position data from a ball plotting a path inside the LED ring:
The goal is for the LEDs’ changing colors to follow the ball’s position - in this case, as the ball passes by the LED that matches its Theta position, it updates that LED’s prior color to a new one which persists until the ball passes by again. My problem is that I can’t figure out how to make each update to the LEDs colors persist. I’m pretty sure I’m missing something obvious - it seems like using the data recorder component would be one way, but it seems no matter how I approach it, I end up failing. Here’s a very simple example (my other several failed definitions are embarrassingly complicated and messy).
data recorder3.gh (14.7 KB)
I also tried to approach this by scripting, but evidently I don’t have enough elementary knowledge of C# to properly create an array . Any guidance would be greatly appreciated!