Forums > Jitter

pattr and pak in jitter


oje
June 20, 2006 | 5:51 pm

Hello everyone,

I have been starting to experiment with pattr/pattrstorage and I have
some problems presently. It seems like everything is working fine
with pattr and pattrstorage but when the numbers come back into "pak"
they don’t seem to be sent into "jit.op". I have set up the patch to
make it a little easier to troubleshoot.

thanks,
Joe

max v2;
#N vpatcher 69 44 1274 857;
#P origin 0 -51;
#P button 854 127 15 0;
#P window setfont "Sans Serif" 9.;
#P message 869 159 14 196617 0;
#P button 496 138 62 0;
#P user uslider 302 50 17 77 128 1 0 0;
#P user uslider 267 50 17 77 128 1 0 0;
#P user uslider 240 50 17 77 128 1 0 0;
#P newex 905 201 105 196617 scale 0 127 0. 16.;
#P user hslider 905 178 18 128 128 1 0 0;
#P number 625 199 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 860 225 33 196617 clear;
#P flonum 906 220 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 907 244 51 196617 recall $1;
#P newex 248 166 61 196617 pattr green;
#X prestore 1 0 1.426772;
#P objectname green;
#P newex 173 164 51 196617 pattr red;
#X prestore 1 0 61.181103;
#P objectname red;
#P newex 322 164 54 196617 pattr blue;
#X prestore 1 0 -48.;
#P objectname blue;
#P newex 320 186 62 196617 prepend set;
#P newex 244 186 62 196617 prepend set;
#P newex 172 186 62 196617 prepend set;
#P message 809 226 48 196617 read;
#P message 754 226 53 196617 write;
#P message 748 246 141 196617 storagewindow;
#P number 663 201 53 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 664 225 86 196617 store $1;
#N counter 1 16;
#X flags 0 0;
#P newobj 663 180 124 196617 counter 1 16;
#P newex 638 285 121 196617 pattrstorage;
#X autorestore u384000510.xml;
#X client_rect 30 89 670 329;
#X storage_rect 545 44 1571 384;
#P objectname u384000510;
#P newex 639 154 41 196617 sel 32;
#P newex 636 129 41 196617 key;
#P message 39 59 30 196617 read;
#P user jit.pwindow 46 538 208 158 0 1 0 0 1 0;
#P flonum 312 221 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 275 220 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 237 220 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 208 261 73 196617 pak 0. 1. 1. 1.;
#P newex 34 289 89 196617 jit.op @op absdiff;
#P toggle 76 58 15 0;
#P newex 39 233 46 196617 metro 2;
#P newex 39 258 63 196617 jit.qt.movie;
#P window linecount 2;
#P comment 25 31 100 196617 1. load in a movie and start it;
#P window linecount 1;
#P comment 223 34 125 196617 2. change the color values;
#P window linecount 2;
#P comment 473 35 100 196617 3. press shift key to store preset;
#P window linecount 1;
#P comment 901 41 100 196617 4. recall the preset?;
#P user panel 12 28 152 502;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 446 27 168 502;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 898 19 159 502;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 172 30 224 500;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P fasten 8 0 11 0 44 282 39 282;
#P fasten 10 0 9 0 81 172 44 172;
#P fasten 9 0 8 0 44 253 44 253;
#P fasten 17 0 8 0 44 252 44 252;
#P fasten 11 0 16 0 39 367 52 367;
#P fasten 12 0 11 1 213 283 118 283;
#P connect 31 0 27 0;
#P connect 13 0 31 0;
#P fasten 13 0 12 1 242 251 234 251;
#P fasten 27 0 12 1 177 232 234 232;
#P fasten 39 0 13 0 245 203 242 203;
#P connect 32 0 28 0;
#P connect 14 0 32 0;
#P fasten 14 0 12 2 280 253 255 253;
#P connect 28 0 12 2;
#P fasten 15 0 12 3 317 255 276 255;
#P connect 29 0 12 3;
#P fasten 40 0 14 0 272 203 280 203;
#P connect 41 0 15 0;
#P connect 30 0 29 0;
#P connect 15 0 30 0;
#P connect 19 0 42 0;
#P fasten 21 0 36 0 668 198 630 198;
#P fasten 35 0 20 0 865 262 643 262;
#P fasten 26 0 20 0 814 243 643 243;
#P fasten 25 0 20 0 759 243 643 243;
#P fasten 24 0 20 0 753 282 643 282;
#P fasten 22 0 20 0 669 242 643 242;
#P fasten 33 0 20 0 912 273 643 273;
#P fasten 18 0 19 0 641 148 644 148;
#P connect 19 0 21 0;
#P connect 21 0 23 0;
#P connect 23 0 22 0;
#P connect 43 0 21 3;
#P connect 35 0 44 0;
#P connect 44 0 43 0;
#P connect 37 0 38 0;
#P connect 38 0 34 0;
#P connect 34 0 33 0;
#P pop;


June 20, 2006 | 6:15 pm

That’s because you’re "setting" the values when they come back out of
the pattrs.

jb



oje
June 20, 2006 | 6:33 pm

Thanks Jeremy! I should have noticed that.

cheers!

Joe


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