Set route args dynamically e.g., from patcherargs
In Max8, is there a way to set the arguments for route (and for osc-route and for o.route) programmatically?
I've tried various combination of "set" messages but haven't found anything that actually works.
Thanks
route/select only accept a "set 77" message when it has only one argument! :)
What does "set 77" do?
I was able to work around the problem by using #1 rather than patcherargs but it is a pity that the arguments can't be changed via patcherargs
I assume you didn't want the solution where you unpack the patcherargs list output into all the additional inlets of route because its inelegant?
I assume you didn't want the solution where you unpack the patcherargs list output into all the additional inlets of route because its inelegant?
I know how to unpack patcherargs but so far I have not found a message that one would use in conjunction with patcherargs items to send to [route] so as to set one of the inlet arguments.
Edit: I don't mind writing [route a b c] so as to create three static outputs but the question is how to change a, b and c into other values dynamically?

Sorry, but maybe I'm not understanding why it needs to be a "set"-type message.

…unless you are conditioned to [route] from Max 4 or 5 which I don't think could do this.
Aha --- thank you --- did not realize you could do that directly --- that's perfect. It wasn't so much that I was used to [route] in Max 5 but rather that I was used to using 'set' to do this kind of thing with other objects and assumed that I had to use that same message for [route] as well.
Appreciate the quick response.
Cheers,