send data to umenu in bpatcher – any hack?
dear all,
this sounds a little hacky (maybe it isn't), but i'm looking for a way to send messages to a umenu within a bpatcher that i do not want to edit (namely an external abstraction). the umenu in the bpatcher / abstraction has no inlet to it, and no receive-object or anything alike.
i know i could do so with the [univeral 1] via "send umenu ...." but this would send my message to all umenus in all sub/bpatchers. any way i can adress one partiular bpatcher (via its scripting-name or something) ?
Yeah, you can send by scripting name, but you'd have to give it a unique name (name it "#1umenu" and then pass that bpatcher a unique argument).
After that just use thispatcher to send directly to it.
edit: just saw that you don't want to have to edit the file at all. I don't think that will be possible without at least adding a scripting name (unless it already happens to have a scripting name that takes an #1 argument).
thanks rodrigo! ... i'm actually trying to message to the umenu in monome's serialosc bpatcher :) ... which ... doesn't have a scripting name :/ any other way?
got it! i can assign all umenus a scripting name (via universal 1) in my case. thanks again :)
Ah right.
Well, also quite hacky, but the underlying serialosc.js connects directly to the umenu as well, so you could edit that file 'externally'. Also quite hacky though.
When they went to this .js-based serialosc they removed so many of the old features/inlets and stuff (changing color/font, etc..).
Are you trying to get a device to connect automatically?
Ah good solution! (I had never come across [universal] before, that's quite handy)
thanks :) yeah, i really like universal. it's also quite handy (or to my knowledge the only possibilty) to eg. change the colors of all UI-objects of one kind (practical for e.g. skinning a patch :))
// i'm basically trying to implement two serialosc bpatchers and make them select the "right" monome depending on which ones (256, 128..) and how many of them are connected, if you can follow..
for sake of completeness: here's what tilman on facebook gave me:
"[pattr] object with the message „bindto bpatcher´s_scripting_name::umenu´s_scripting_name“
workins perfectly :)