odot library -- referring to dynamic input address in o.expr.codebox

Samu's icon

I'm trying to access an address whose index could change but the same operation needs to be performed based on the last tag in the OSC address.

With o.select for example, /*/x would select both /1/x and /2/x but not /1/y.

This behavior is desired, but instead within the context of o.expr.codebox. How do I reference a variable incoming address in the o.expr language?

Philippe Roger's icon

Hello SAMU,

Don't know if you already solved your problem but you can find bellow an example of how I am doing this with o.expr.codebox
I hope it will be helpful ^^

Max Patch
Copy patch and select New From Clipboard in Max.