Python line for labels in a user-interface

Hi!

So, I’m doing a video-project and I’m making a user interface (seen in the picture) to control the visuals being projected on a construction.


So the buttons under the picture are there so you can choose whether the visual
goes to layer 1-2-3 or 4. After that, you can adjust the chosen visual with 16 different knobs.
It’s already working fine but now I’d like to have a label under every knob (where the numbers are currently) that has the name of the effect. (according to what visual you are affecting, those will be different effects)
I barely know any python but so I’m looking for the right line to put in my ‘label’

The buttons I’m using have this code in them to change the color, based on the state they are in.
I think I could use a similar code. This is the code:
op(‘color’)[int(op(‘i’)[‘state’]+1),‘Red’]

Basically the state would be what visual is in the layer. (so if there’s 30 visuals there’d be 30 states)
I think I’d need a dat-op with a table, something like this:
image.

If somebody could help me out I’d be very glad!

Cheers

Are you working with the new widgets or just pure interface COMPs? There are lots of ways to solve this problem, so knowing a little more about your set-up might also be helpful here.

Are you using replicators, or just making this UI by hand?