[jitter] jit.tiffany from within jit.expr
Jean-Fran ç ois Charles
jeanfrancois.charles at newflore.org
Sun Jul 1 12:40:21 MDT 2007
- Previous message: [jitter] Re: Re: Obj files in displaylist?
- Next message: [jitter] Flash in Jitter
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello, We can use jit.tiffany with fixed xy values, and with random ones. In the later case, the internal values are not reinitialized when we change xrange, yrange, or when a new matrix comes in. Rather, one has to give the message "xy" (or "x" or "y".) But when using jit.tiffany as a functor in jit.expr, I can't find a mean to reset randomly the internal values according to xrange and yrange. Or rather, those values seem to reset each time a new matrix comes (different from what the object does), but with the default values "0.2" I dont' think it's possible, but is there a way to send a message to a functor in jit.expr? Thanks, Jean-François. See patch: #P window setfont "Sans Serif" 18.; #P window linecount 1; #P comment 50 308 21 196626 4; #P comment 856 267 21 196626 3; #P comment 272 121 21 196626 2; #P comment 100 28 21 196626 1; #P window setfont "Sans Serif" 9.; #P window linecount 2; #P comment 63 340 155 196617 the functor seems stuck to default xrange and yrange 0.2; #P comment 70 309 100 196617 how to reset internal values here!!?; #P toggle 43 30 15 0; #P window linecount 1; #P newex 43 48 58 196617 metro 100; #P message 735 267 20 196617 xy; #P newex 650 266 79 196617 prepend yrange; #P newex 569 266 79 196617 prepend xrange; #P comment 179 121 41 196617 xrange; #P newex 179 269 69 196617 prepend expr; #P user jit.pwindow 552 388 202 152 0 1 0 0 1 0; #P user jit.pwindow 178 388 202 152 0 1 0 0 1 0; #P window linecount 5; #P message 266 318 107 196617 expr "jit.tiffany(in[0]\\\, @xrange 0.030000\\\, @yrange 0.020000\\\, @grid 0)"; #P window linecount 1; #P newex 43 133 27 196617 t l b; #P message 123 47 74 196617 read chilis.jpg; #P newex 43 79 111 196617 jit.qt.movie 600 2000; #P newex 553 311 55 196617 jit.tiffany; #P newex 266 299 62 196617 prepend set; #P newex 179 311 45 196617 jit.expr; #P flonum 220 134 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 179 134 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 179 237 375 196617 sprintf symout jit.tiffany(in[0]\\\\\\\, @xrange %f\\\\\\\, @yrange %f\\\\\\\, @grid 0); #P comment 220 121 50 196617 yrange; #P window linecount 2; #P comment 756 267 100 196617 <- xy resets internal values; #P user panel 731 260 155 44; #X brgb 255 255 255; #X frgb 154 0 232; #X border 3; #X rounded 0; #X shadow 0; #X done; #P user panel 46 302 185 75; #X brgb 255 255 255; #X frgb 154 0 232; #X border 3; #X rounded 0; #X shadow 0; #X done; #P user panel 31 23 173 54; #X brgb 255 255 255; #X frgb 154 0 232; #X border 3; #X rounded 0; #X shadow 0; #X done; #P user panel 165 110 141 48; #X brgb 255 255 255; #X frgb 154 0 232; #X border 3; #X rounded 0; #X shadow 0; #X done; #P connect 24 0 23 0; #P connect 23 0 12 0; #P fasten 13 0 12 0 128 71 48 71; #P connect 12 0 14 0; #P connect 7 0 6 0; #P fasten 14 1 6 0 65 222 184 222; #P lcolor 7; #P connect 6 0 18 0; #P fasten 14 0 9 0 48 310 184 310; #P lcolor 7; #P connect 18 0 9 0; #P connect 9 0 16 0; #P connect 18 0 10 0; #P connect 10 0 15 0; #P fasten 8 0 6 1 225 219 549 219; #P connect 20 0 11 0; #P connect 21 0 11 0; #P fasten 14 0 11 0 48 293 558 293; #P lcolor 7; #P connect 22 0 11 0; #P connect 11 0 17 0; #P fasten 7 0 20 0 184 169 574 169; #P fasten 8 0 21 0 225 161 655 161; #P window clipboard copycount 31;
- Previous message: [jitter] Re: Re: Obj files in displaylist?
- Next message: [jitter] Flash in Jitter
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
