How to show/hide 120 elements in a certain combination defined by script?

I have used on/off switches for the markers. The parameters for each of them were created in a loop but there was an awful lot of connecting them. Maybe there is a better way how to do this. You could try an svg animation.

You can check this simple instrument here:

Guitalele - Virtual instruments / HALion - Steinberg Forums