Hi,
now I'm playing around with the really mind-twisting parts of data structs: arrays of arrays.
Attached patch uses a template, array_of_arrays, in the subpatch "pd paint-array". This has an array of arrays, but it seems impossible, to edit the elements of the interior arrays with the mouse.
I can change them through a nested "element" filtering network as shown in the lower right corner of the patch, but they are impossible to reach with mouse editing. Is this intentional? Or a bug or maybe just a not finished part of the data structures subsystem?
Frank Barknecht _ ______footils.org__
At the moment, "points" of arrays (even including other arrays) don't catch the mouse; I intend to change that, but not for 0.38 which I'm trying to stop adding to so I can just get it working...
cheers Miller
On Sat, Sep 11, 2004 at 06:10:12PM +0200, Frank Barknecht wrote:
Hi,
now I'm playing around with the really mind-twisting parts of data structs: arrays of arrays.
Attached patch uses a template, array_of_arrays, in the subpatch "pd paint-array". This has an array of arrays, but it seems impossible, to edit the elements of the interior arrays with the mouse.
I can change them through a nested "element" filtering network as shown in the lower right corner of the patch, but they are impossible to reach with mouse editing. Is this intentional? Or a bug or maybe just a not finished part of the data structures subsystem?
Ciao
Frank Barknecht _ ______footils.org__
#N struct array_of_floats float y array floatarray afloat; #N struct afloat float y float f; #N struct array_of_arrays float x float y array array_array array_of_floats ; #N canvas 295 15 957 828 10; #N canvas 147 280 450 300 afloat 0; #X obj 121 137 drawnumber y; #X obj 108 61 struct afloat float y; #X restore 40 35 pd afloat; #N canvas 251 383 450 300 array_of_floats 0; #X obj 104 188 plot floatarray 900 2 0 0 30; #X obj 26 61 struct array_of_floats float y array floatarray afloat ; #X restore 39 55 pd array_of_floats; #N canvas 0 0 450 300 paint 0; #X scalar array_of_floats 0 ; 163 0 ; 169 0 ; 231 0 ; 207 0 ; 149 0 ; 96 0 ; 129 0 ; 100 0 ; 85 0 ; 85 0 ; ;; #X restore 46 133 pd paint; #X obj 256 198 x-append pd-paint array_of_floats; #X msg 250 143 200; #X msg 414 142 clear; #X obj 414 167 s pd-paint; #X obj 169 263 setsize array_of_floats floatarray; #X obj 257 168 t f b; #X msg 176 225 10; #N canvas 443 289 643 337 array_of_arrays 0; #X obj 93 84 struct array_of_arrays float x float y array array_array array_of_floats; #X obj 92 164 plot array_array 90 2 0 0 20; #X restore 40 76 pd array_of_arrays; #X msg 176 341 200; #X obj 183 366 t f b; #N canvas 18 75 839 478 paint-array 1; #X scalar array_of_arrays 256 178 ; -44 ; 0 0 ; 0 0 ; 74 0 ; 0 0 ; 0 0 ; 0 0 ; 23 0 ; 0 0 ; 0 0 ; 0 0 ; ; 88 ; 0 0 ; 0 0 ; 81 0 ; 0 0 ; 36 0 ; ; ;; #X restore 50 316 pd paint-array; #X obj 182 396 x-append pd-paint-array array_of_arrays; #X obj 95 461 setsize array_of_arrays array_array; #X msg 367 339 clear; #X obj 367 364 s pd-paint-array; #X msg 503 330 write /tmp/array_of_array.txt; #X obj 495 647 element array_of_arrays array_array; #X obj 605 599 pointer; #X msg 597 566 traverse pd-paint-array , next; #X floatatom 514 596 5 0 0 0 - - -; #X floatatom 275 662 5 0 0 0 - - -; #X obj 279 679 element array_of_floats floatarray; #X obj 238 733 setsize array_of_floats floatarray; #X msg 238 706 10; #X msg 102 423 2; #X obj 533 763 element array_of_floats floatarray; #X obj 484 795 set afloat y; #X floatatom 488 765 5 0 0 0 - - -; #X floatatom 534 737 5 0 0 0 - - -; #X msg 270 704 5; #X connect 3 0 7 1; #X connect 4 0 8 0; #X connect 5 0 6 0; #X connect 8 0 3 0; #X connect 8 1 3 1; #X connect 9 0 7 0; #X connect 11 0 12 0; #X connect 12 0 14 0; #X connect 12 1 14 1; #X connect 14 0 15 1; #X connect 16 0 17 0; #X connect 18 0 17 0; #X connect 19 0 24 1; #X connect 19 0 25 1; #X connect 19 0 28 1; #X connect 20 0 19 1; #X connect 21 0 20 0; #X connect 22 0 19 0; #X connect 23 0 24 0; #X connect 26 0 25 0; #X connect 27 0 15 0; #X connect 28 0 29 1; #X connect 30 0 29 0; #X connect 31 0 28 0; #X connect 32 0 25 0;
#N canvas 286 300 450 300 10; #X obj 176 188 append $2 x; #X obj 248 107 symbol $1; #X obj 248 159 pointer; #X msg 248 132 traverse $1 , bang; #X obj 248 74 inlet; #X obj 126 73 inlet; #X obj 126 115 f; #X obj 309 73 loadbang; #X text 124 49 x-coord; #X text 250 49 bang or paint area name; #X text 78 225 arguments; #X text 118 245 1: painting area (where?); #X text 117 264 2: template definition (what?); #X obj 176 215 outlet; #X connect 0 0 13 0; #X connect 1 0 3 0; #X connect 2 0 0 1; #X connect 3 0 2 0; #X connect 4 0 1 0; #X connect 5 0 6 0; #X connect 6 0 0 0; #X connect 7 0 1 0;