OSC-route

izac01's icon

I have an input message that looks like

/mrmr tactilezone 35 Izac 563 605

how do i route this and be left with the last numbers as an output?

[OSC-route /mrmr/tactilezone/35/izac/*] is not working for me..
How do i include the spaces??

Any help would be great...

Luke Hall's icon

For this you would need multiple [route]s for the max list and [OSC-route]s for the OSC formatted messages. Or more simply you could just [unpack] or [zl nth] everything afterwards, it all depends on whether the number you want will always be the fifth item in the list.

lh

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

izac01's icon

Thank you VERY very much!!

both the zl nth and unpack are perfect.

I had spent 2 days trying to get it to work. THanks again for the help.

izac01's icon

Okay not working as expected.

when using the message it works great.. but its not taking it in from the udpreceive for some reason..

Any ideas why?

if i print what is coming form the udpreceive it is something like
"/mrmr pushbutton 36 Izac 0"
or
"/mrmr tactilezone 35 Izac 500 596"

both numbers do change depending on what action i do in Mrmr...

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

Thanks

Luke Hall's icon

It looks like you're getting a symbol rather than a list, try [fromsymbol] before you do the routing.

lh

mzed's icon

You don't; that's not a good OSC namespace.

Try turning on (or off? bundle mode in mrmr.

mz

BTW: I guess I answered you already in the other thread.