pattr bindto : confused

May 31, 2006 at 11:26am

pattr bindto : confused

Hello,

Max 4.5.7, OS 10.3.9

I’m confused about what should happen when binding one pattr object to another.

When I bind to a UI object, say a number box, updates in the value are dutifully reported through the leftmost outlet. However, when I bind to a pattr object this doesn’t happen.

Is this the expected behaviour?

The attached patch demonstrates this (on my machine):

#P window setfont “Sans Serif” 12.;
#P flonum 251 246 35 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 251 213 125 196620 pattr @bindto pobj;
#X prestore 1 0 17.;
#P objectname u137000065;
#P flonum 253 121 35 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 253 55 35 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 253 86 70 196620 pattr pobj;
#X prestore 1 0 17.;
#P objectname pobj;
#P flonum 69 247 35 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 69 213 143 196620 pattr @bindto numbox;
#X prestore 1 0 3.98;
#P objectname u716000057;
#P flonum 69 54 35 12 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname numbox;
#P comment 108 54 57 196620 numbox;
#P window linecount 6;
#P comment 69 106 100 196620 This binding works as expected – numbox’s value is echoed via the pattr;
#P window linecount 2;
#P comment 252 162 100 196620 Not so here. Is this right?;
#P user panel 232 41 180 237;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P user panel 49 41 180 237;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P background;
#P connect 11 0 12 0;
#P connect 8 0 10 0;
#P connect 9 0 8 0;
#P connect 6 0 7 0;
#P window clipboard copycount 13;

#26232
May 31, 2006 at 12:27pm

Thanks for noticing this problem. It will be fixed in the next update.

jb

#78023

You must be logged in to reply to this topic.