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


    Samu's icon
    Samu's icon
    Mar 06 2023 | 8:01 pm
    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
      Philippe Roger's icon
      Philippe Roger
      Mar 17 2023 | 9:25 pm
      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 Patcher
      In Max, select New From Clipboard.
      Show Text