Detecting when a new channel is added to a chop

Hi,
I have some OSC data coming in. I can trigger some python with a chop execute but I have one case where I don’t know what to do.
I would like to detect when a new channel is created in my chop and read the value of that channel with python. None of the options in the chop execute work in this case.

One thing you could do is run your chop into an info CHOP and pull num_channels, and feed that into a chop_execute.

you do have a few edge cases to worry about with this simple of an approach. for example if same frame you lose one channel, but gain another, the total amount hasn’t changed.

Another similar approach that would catch at least that edge case is the dat execute:

Yea I wasn’t aware of the info chop. That should do the trick for now.