Forums > MaxMSP

pattr questions

June 20, 2007 | 9:44 am

firstly why wont pattr bindto the button object in the example below

max v2;
#N vpatcher 10 59 183 247;
#P window setfont "Sans Serif" 9.;
#P message 29 103 30 196617 open;
#P newex 29 122 47 196617 pcontrol;
#P newex 29 82 48 196617 loadbang;
#P message 30 30 110 196617 bindto patcher::button;
#P button 13 30 15 0;
#N vpatcher 664 118 792 246;
#P hidden inlet 58 32 15 0;
#P button 7 31 15 0;
#P objectname button;
#P pop 1;
#P newobj 29 143 52 196617 p patcher;
#P objectname patcher;
#P newex 30 56 40 196617 pattr;
#X prestore 1 0 0;
#P objectname u294000005;
#P connect 4 0 6 0;
#P connect 6 0 5 0;
#P connect 5 0 1 0;
#P connect 3 0 0 0;
#P fasten 2 0 0 0 18 49 35 49;
#P pop;

if i change the button to a number object, and rename it, it will bindto it. But that not what i want. it seems weird to me.

Secondly pattr will only bind to objects inside a subpatch if you use a ‘p patchername’. If however you use a pre-existing patch an just type in the name into an object box i.e. ‘patchername’ pattr will not bindto the desired objects.

any help?


June 20, 2007 | 10:23 am

Am 20.06.2007 um 11:45 schrieb Paul de Casaparis:

> firstly why wont pattr bindto the button object in the example below

The button has no value and is not pattr-compatible.

> Secondly pattr will only bind to objects inside a subpatch if you
> use a ‘p patchername’. If however you use a pre-existing patch an
> just type in the name into an object box i.e. ‘patchername’ pattr
> will not bindto the desired objects.

Sure it will, you just have to make sure that the subpatch/
abstraction also has a name. Then you can bind to it using bindto
subpatchname::objectname.

jb


June 20, 2007 | 10:39 am

cheers, yes your right!
im new to the whole pattr objects. just getting my head round them now.


Viewing 3 posts - 1 through 3 (of 3 total)