variable send object

alberto-bernal's icon

Hello,
I need to map lots of data from a jitter matrix in the form (x, y) + value, from two different outlets, and I'm trying to find a fast way to do it without using scripting commands to "thispatcher" -I guess, this would slow down the process-.
Is there a way to change the variable name of the send or value objects, in order to avoid having one send object per variable? In the objects it doesn't seem to be a way to do this, but I guess that there must be a solution somewhere...
Thank you for your tips,

Alberto Bernal

jayrope's icon

it works with javascript.

you can feed a variable in, f.e. via a [thispoly~] into a [sprintf %ld_mysend] to create an instance-specific send object from out of javascript then. i am working on this right now, already for myself. will be happy to post an example here soon, see other thread on javascript forum eventually.
https://cycling74.com/forums/index.php?t=msg&th=36932

jrp

MIB's icon

do you mean something like forward???

alberto-bernal's icon

Oh, I didn't know from this object, that works for my purposes. Thank you very much for the tip,
Alberto

MIB's icon

glad I could help :)

jayrope's icon

MIB, no i meant a javascript generating the send objects with instance specific names

jrp

MIB's icon

personally, I know nothing about java scripting... one of these days maybe :)
I just thought forward would be a "native" solution that could work for alberto

jayrope's icon

I'm sorry, forward can be the right way to do it, of course, as long as the receiving objects are named accordingly. i was thinking of data AND signal to be processed instead. i am working on something similar. i already have made it work with data only, though. but the routing can be changed on the fly.
The javascript tutorials within max 4.63 were of great help there, in any case.

:)

jrp