Cloning objects for communication outside patcher without cords or send/receives

Oct 24, 2006 at 6:06pm

Cloning objects for communication outside patcher without cords or send/receives

Sorry to bug for another problem of mine, but if there is a known way of doing this, it would save me lots and lots of time.

Is there a way of using twin objects(say twin numberboxes), that would change and respond alltogether within different patchers?

I think this is not a programming question but a question about the way max is designed. I want to be able to do this without connecting them by any means. I was hoping that, giving the same name for the objects would make them ideal clones, but according to the manual I still need to send the value to another patcher and use script operations(with thispatcher. or directly connecting the cord to it) to change the named object. Global send and receive will still be a mess for me.

So basically, I want to be able to have copies of objects that are connected to this and that which have no connections at all in another patcher window, controlling the one connected to the actual program.

Sorry if this sounds lame. I need to ask. :)

Thanks.

#28330
Oct 24, 2006 at 6:48pm

#86849
Oct 24, 2006 at 7:46pm

Thanks jln!

Send and receive would work, but the reason I am needing this is that I want to create a seperate GUI in another patcher for my application. The application itself has over 200 controllable objects which can also be manipulated by the program itself. So using send and receive modules would require me to attach receives to every input and seperate sends to every output with unique names on the application itself. And all objects will on the seperate GUI will be connected to a send module(which is not a problem, but managing that space for just the cords of more than 200×2=400 send/receive objects on the real app patcher would probably render the app impossible to be debugged later on.)

Pattr is really a solution actually, I might just give names to objects in the main app, so it stays untouched, and connect them to gui with [pattr pat1 app::numbox1] and using it’s output with a [prepend set] to report the values changed by the application itself to the GUI. This way, the GUI will be messy itself, but there will be no need to debug it, so that should not be much of a problem.

I just wondered if there is any way of interconnecting objects with the same names in max, without using any other objects connected to them(ie. like IC Send and receive in NI Reaktor). Appereantly there is no painless way of doing it though. OK.

Thanks a bunch!

#86850
Oct 25, 2006 at 12:22am

good question (or should i say good idea) – but there
is no such thing.

the only way to realize this would be to manually
implement it.
(number – prepend set – send foo – receieve foo – number)

the external called [_] might be useful for you now that you
are going to need 200 prepend sets. :)

#86851
Oct 25, 2006 at 12:39am

Oh I love things that make life easier! But what is te name of the external, is it _ ? Any links to it, as it is not searchable in google.

I just found out about Max Toolbox, and it really rocks. Want to figure out that _ thing. :)

Thanks

#86852
Oct 25, 2006 at 1:21am

#86853
Oct 25, 2006 at 1:57am

Value seems to be a more appropriate option for this than send and receive. But I agree that the pattr system seems to be made just for this kind of project.

#86854
Oct 25, 2006 at 2:11am

#86855
Oct 27, 2006 at 5:18am

Batuhan wrote:
> I just wondered if there is any way of interconnected objects with
> the same names in max, without using any other objects connected to
> them(ie. like IC Send and receive in NI Reaktor). Appereantly there
> is no painless way of doing it though. OK.

Almost I’d say. The name of an object is local to the patch. And this is
wondefull!!! The pattr system allows to adress them. Especially Jeremy’s
new pattrmarker object will help you there.
place a single [pattrmarker UI] into your UI patch, and instead of a
named numberbox as you envisioned, you take a [pattr ::UI::nameof
numberbox]. Thats it… No other connections required

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#N vpatcher 324 360 924 760;
#P window setfont “Sans Serif” 9.;
#P number 325 121 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 325 172 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 325 146 136 196617 pattr name[3] ::UI::name[3];
#X prestore 1 0 33;
#P objectname name[3];
#P number 185 121 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 185 172 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 185 146 136 196617 pattr name[2] ::UI::name[2];
#X prestore 1 0 -48;
#P objectname name[2];
#P number 45 121 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 45 172 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 0;
#P newex 45 146 136 196617 pattr name[1] ::UI::name[1];
#X prestore 1 0 -3;
#P objectname name[1];
#P connect 2 0 0 0;
#P connect 0 0 1 0;
#P connect 5 0 3 0;
#P connect 3 0 4 0;
#P connect 8 0 6 0;
#P connect 6 0 7 0;
#P pop;
#P newobj 174 51 137 196617 p my wondeful UI controls;
#P objectname “my wondeful UI controls”;
#P number 155 107 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname name[3];
#P number 112 107 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname name[2];
#P number 69 107 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname name[1];
#P newex 69 51 87 196617 pattrmarker UI;
#P window clipboard copycount 5;

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#86856

You must be logged in to reply to this topic.