Controlling a COMP Button "value" with a CHOP

Likely a noob question but I can’t seem to reference the value parameter of a Button COMP with a count CHOP that outputs 0 or 1.

In short, I want to create a big red button that lights up when the toggle is on (chop outputs a 1) and off when it’s off (chop outputs a 0). Some sort of network warning saying “this component is on”

Does it have to be an interactive button, or are you just looking to create an indicator? It’s not trivial to set a button’s value from a CHOP value, but it’s very trivial to change the Fill Alpha on a Rectangle TOP change based on a CHOP value.

Hello,

Since some version of TD, in the Button page of the parameters, you have a Value switch. Its very easy to change the state of the button changing the state of the value.

Jacques

Thanks! This is what I was looking for. Two takeaways: 1. I guess I have to familiarize with more of TDs operators and 2) why is not trivial to set it? I was using the regular python syntax op(‘object’)[‘key’] which seemed like the right choice. Any articles would help!

Thanks Jacques! This is what I was trying but didn’t work. I assume that it has to do with the way CHOP and COMP operators interact.