Forums > MaxMSP

thispatcher: colours going strange

December 27, 2006 | 11:52 pm

when i connect and disconnect objects using script messages to thispatcher, the colours of objects in my patch goes haywire, often rendering them very hard to see. is there any way round this?

heres an example, try clicking on the matrix object. strangely the colour error only seems to occur if you unlock then lock the patch after loading it.

max v2;
#N vpatcher 42 112 1272 753;
#P origin 633 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#N vpatcher 20 74 620 474;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 110 86 52 196617 listfunnel;
#P inlet 121 39 15 0;
#P outlet 422 325 15 0;
#P outlet 399 325 15 0;
#P outlet 375 325 15 0;
#P outlet 355 325 15 0;
#P outlet 332 324 15 0;
#P outlet 309 324 15 0;
#P outlet 285 324 15 0;
#P outlet 265 324 15 0;
#P outlet 244 324 15 0;
#P outlet 221 324 15 0;
#P outlet 197 324 15 0;
#P outlet 177 324 15 0;
#P outlet 157 323 15 0;
#P outlet 134 323 15 0;
#P outlet 110 323 15 0;
#P outlet 90 323 15 0;
#P newex 162 288 40 196617 change;
#P newex 162 267 40 196617 change;
#P newex 162 246 40 196617 change;
#P newex 162 225 40 196617 change;
#P newex 162 204 40 196617 change;
#P newex 162 183 40 196617 change;
#P newex 162 162 40 196617 change;
#P newex 162 141 40 196617 change;
#P newex 110 288 40 196617 change;
#P newex 110 267 40 196617 change;
#P newex 110 246 40 196617 change;
#P newex 110 225 40 196617 change;
#P newex 110 204 40 196617 change;
#P newex 110 183 40 196617 change;
#P newex 110 162 40 196617 change;
#P newex 110 141 40 196617 change;
#P window linecount 0;
#P newex 114 113 209 196617 spray 16;
#P connect 1 0 17 0;
#P connect 33 0 34 0;
#P connect 0 0 1 0;
#P connect 0 1 2 0;
#P connect 0 2 3 0;
#P connect 0 3 4 0;
#P connect 0 4 5 0;
#P connect 0 5 6 0;
#P connect 0 6 7 0;
#P connect 0 7 8 0;
#P connect 2 0 18 0;
#P connect 34 0 0 0;
#P connect 3 0 19 0;
#P connect 4 0 20 0;
#P connect 0 8 9 0;
#P connect 0 9 10 0;
#P connect 0 10 11 0;
#P connect 0 11 12 0;
#P connect 0 12 13 0;
#P connect 0 13 14 0;
#P connect 0 14 15 0;
#P connect 0 15 16 0;
#P connect 5 0 21 0;
#P connect 6 0 22 0;
#P connect 7 0 23 0;
#P connect 8 0 24 0;
#P connect 9 0 25 0;
#P connect 10 0 26 0;
#P connect 11 0 27 0;
#P connect 12 0 28 0;
#P connect 13 0 29 0;
#P connect 14 0 30 0;
#P connect 15 0 31 0;
#P connect 16 0 32 0;
#P pop;
#P hidden newobj 1021 40 127 196617 p;
#P user multiSlider 701 308 236 102 0. 127. 16 2665 47 0 2 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user matrixctrl 9 204 1187 13 ad.psd MatrixDefaultBkgnd.pct 1187 13 16 11 74 1 16 11 1 1 288 2 5120 0;
#P user multiSlider 474 100 16 105 0. 127. 1 2665 47 0 0 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname s[15];
#P newex 133 490 57 196617 zl slice 16;
#P window linecount 5;
#P hidden newex 1153 237 44 196617 pak 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;
#P user multiSlider 378 100 16 105 0. 127. 1 2665 47 0 0 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname s[9];
#P user multiSlider 474 100 16 105 0. 127. 1 2665 47 0 0 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname s[10];
#P user multiSlider 474 100 16 105 0. 127. 1 2665 47 0 0 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname s[11];
#P user multiSlider 474 100 16 105 0. 127. 1 2665 47 0 0 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname s[12];
#P user multiSlider 474 100 16 105 0. 127. 1 2665 47 0 0 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname s[13];
#P user multiSlider 474 100 16 105 0. 127. 1 2665 47 0 0 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname s[14];
#P window linecount 1;
#N vpatcher 10 59 610 459;
#P window setfont "Sans Serif" 9.;
#P newex 105 101 31 196617 + 10;
#P newex 104 82 32 196617 * 16;
#P newex 50 81 40 196617 unpack;
#P newex 89 127 172 196617 sprintf script move s[%ld] %ld 100;
#P newex 50 50 52 196617 listfunnel;
#P inlet 50 30 15 0;
#P outlet 89 149 15 0;
#P connect 1 0 2 0;
#P connect 2 0 4 0;
#P connect 4 0 3 0;
#P connect 3 0 0 0;
#P connect 4 1 5 0;
#P connect 5 0 6 0;
#P connect 6 0 3 1;
#P pop;
#P hidden newobj 446 384 30 196617 p;
#P newex 169 406 27 196617 i;
#P newex 208 407 39 196617 thresh;
#N counter 0 1000;
#X flags 0 0;
#P newobj 124 440 80 196617 counter 0 1000;
#P user multiSlider 378 100 16 105 0. 127. 1 2665 47 0 0 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname s[8];
#P user multiSlider 154 100 16 105 0. 127. 1 2665 47 0 0 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname s[7];
#P user multiSlider 138 100 16 105 0. 127. 1 2665 47 0 0 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname s[6];
#P user multiSlider 90 100 16 105 0. 127. 1 2665 47 0 0 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname s[5];
#P user multiSlider 74 100 16 105 0. 127. 1 2665 47 0 0 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname s[4];
#P user multiSlider 58 100 16 105 0. 127. 1 2665 47 0 0 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname s[3];
#P user multiSlider 42 100 16 105 0. 127. 1 2665 47 0 0 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname s[2];
#P user multiSlider 26 100 16 105 0. 127. 1 2665 47 0 0 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname s[1];
#N thispatcher;
#Q end;
#P hidden newobj 446 410 61 196617 thispatcher;
#P user multiSlider 10 100 16 105 0. 127. 1 2665 47 0 0 2 0 66 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P objectname s[0];
#P newex 237 279 27 196617 t l b;
#P newex 180 274 25 196617 iter;
#P newex 0 288 20 196617 t b;
#P message 0 265 51 196617 getrow 0;
#P newex 148 307 41 196617 sel 0 1;
#P connect 2 0 1 0;
#P hidden connect 28 0 2 0;
#P hidden connect 1 0 28 0;
#P hidden connect 30 0 5 0;
#P hidden connect 30 1 7 0;
#P hidden connect 30 2 8 0;
#P hidden connect 30 3 9 0;
#P hidden connect 30 4 10 0;
#P hidden connect 30 5 11 0;
#P connect 0 1 15 0;
#P connect 0 0 15 0;
#P connect 16 0 26 0;
#P hidden connect 30 6 12 0;
#P connect 3 0 0 0;
#P hidden connect 30 7 13 0;
#P connect 0 1 17 0;
#P connect 4 1 15 3;
#P connect 4 0 3 0;
#P connect 15 0 17 1;
#P connect 17 0 16 0;
#P hidden connect 28 1 4 0;
#P hidden connect 30 8 14 0;
#P hidden connect 30 9 24 0;
#P hidden connect 26 0 18 0;
#P hidden connect 18 0 6 0;
#P hidden connect 30 10 23 0;
#P hidden connect 30 11 22 0;
#P hidden connect 30 12 21 0;
#P hidden connect 30 13 20 0;
#P hidden connect 30 14 19 0;
#P hidden connect 30 15 27 0;
#P hidden connect 25 0 29 0;
#P hidden connect 29 0 30 0;
#P hidden connect 5 0 25 0;
#P hidden connect 7 0 25 1;
#P hidden connect 8 0 25 2;
#P hidden connect 9 0 25 3;
#P hidden connect 10 0 25 4;
#P hidden connect 11 0 25 5;
#P hidden connect 12 0 25 6;
#P hidden connect 13 0 25 7;
#P hidden connect 14 0 25 8;
#P hidden connect 24 0 25 9;
#P hidden connect 23 0 25 10;
#P hidden connect 22 0 25 11;
#P hidden connect 21 0 25 12;
#P hidden connect 20 0 25 13;
#P hidden connect 19 0 25 14;
#P hidden connect 27 0 25 15;
#P pop;


December 28, 2006 | 12:36 am

Hi,

Unfortunately, I don’t have the ad.psd picture nor anything else I could load to replace.
Could you upload it, please?


December 28, 2006 | 8:03 am

sorry. it’ll work fine with the default pic though


December 28, 2006 | 8:07 am

ah sorry. actually , my example is moving the sliders, not connct/disconnecting them. however, both script actions seem to cause colour changes


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