. .try this . . grz nos
Nicholas Ward wrote:
Hi, Im trying to create 25 spheres in a 5 * 5 grid in gem and am quickly loosin my mind. Can anyone suggest a way way to do this. Ive attached my effort so far. If i could find out how to give each new subpatch i create a new name Id be getting somewhere---- I think. Something like OBJ 500 200 PD "NEW_PATCH $1". Any ideas anyone on how to glue that NEW_PATCH and $1 together.
thanks
nicky
#N canvas 0 0 452 302 10; #X obj 10 10 gemhead; #X obj 10 40 translateXYZ $1 $2 0; #X obj 10 70 sphere 0.5 20; #X connect 0 0 1 0; #X connect 1 0 2 0;
#N canvas 490 66 939 499 10; #X obj 687 419 s pd-builder2.pd; #X msg 495 107 destroy; #X msg 475 77 create; #X msg 509 138 1; #X msg 548 131 0; #X obj 483 178 gemwin; #X msg 505 221 lighting 1; #X msg 543 176 dimen 512 512; #X msg 507 266 lighting 0; #X obj 695 71 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X msg 688 395 obj $1 $2 sphere_unit $3 $4; #X obj 695 181 random 100; #X obj 687 367 pack f f f f; #X obj 777 213 random 100; #X obj 777 277 * 3; #X obj 621 241 * 3; #X obj 695 133 t b b; #X obj 695 209 t f f; #X obj 783 241 t f f; #X obj 799 325 expr $f1 / 12.5 -4; #N canvas 0 0 452 302 count 0; #X obj 54 32 inlet; #X obj 54 320 outlet; #X obj 156 32 inlet; #X obj 54 128 until; #X obj 54 156 f; #X obj 85 182 + 1; #X obj 154 74 f $1; #X obj 216 50 loadbang; #X obj 151 136 + 1; #X obj 154 328 outlet; #X obj 111 262 sel; #X obj 52 71 t b b; #X msg 101 132 0; #X connect 0 0 11 0; #X connect 2 0 6 0; #X connect 3 0 4 0; #X connect 4 0 5 0; #X connect 4 0 10 0; #X connect 5 0 4 1; #X connect 6 0 8 0; #X connect 7 0 6 0; #X connect 8 0 10 1; #X connect 10 0 3 1; #X connect 10 0 9 0; #X connect 10 1 1 0; #X connect 11 0 3 0; #X connect 11 1 12 0; #X connect 12 0 4 1; #X restore 695 103 pd count; #X msg 740 56 25; #X obj 640 438 print; #X obj 665 261 expr $f1 / 12.5 -4; #X obj 590 8 loadbang; #X obj 590 38 t b b b b b; #X obj 678 2 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 144 90 sphere_unit -0.16 -1.6; #X obj 186 81 sphere_unit 0.96 -1.84; #X obj 165 27 sphere_unit 0.4 -3.28; #X obj 153 237 sphere_unit 0.0799999 2.32; #X obj 9 39 sphere_unit -3.76 -2.96; #X obj 93 66 sphere_unit -1.52 -2.24; #X obj 36 264 sphere_unit -3.04 3.04; #X obj 267 273 sphere_unit 3.12 3.28; #X obj 39 276 sphere_unit -2.96 3.36; #X obj 15 72 sphere_unit -3.6 -2.08; #X obj 201 222 sphere_unit 1.36 1.92; #X obj 90 273 sphere_unit -1.6 3.28; #X obj 282 138 sphere_unit 3.52 -0.32; #X obj 159 252 sphere_unit 0.24 2.72; #X obj 204 267 sphere_unit 1.44 3.12; #X obj 30 102 sphere_unit -3.2 -1.28; #X obj 78 147 sphere_unit -1.92 -0.0799999; #X obj 246 228 sphere_unit 2.56 2.08; #X obj 117 216 sphere_unit -0.88 1.76; #X obj 87 114 sphere_unit -1.68 -0.96; #X obj 3 105 sphere_unit -3.92 -1.2; #X obj 48 288 sphere_unit -2.72 3.68; #X obj 231 3 sphere_unit 2.16 -3.92; #X obj 228 93 sphere_unit 2.08 -1.52; #X obj 207 237 sphere_unit 1.52 2.32; #X obj 192 189 sphere_unit 1.12 1.04; #X text 206 405 !!sphere_unit must be in your path (or open it manualy) !; #X connect 1 0 5 0; #X connect 2 0 5 0; #X connect 3 0 5 0; #X connect 4 0 5 0; #X connect 6 0 5 0; #X connect 7 0 5 0; #X connect 8 0 5 0; #X connect 9 0 20 0; #X connect 10 0 0 0; #X connect 10 0 22 0; #X connect 11 0 17 0; #X connect 12 0 10 0; #X connect 13 0 18 0; #X connect 14 0 12 1; #X connect 15 0 12 0; #X connect 16 0 11 0; #X connect 16 1 13 0; #X connect 17 0 15 0; #X connect 17 1 23 0; #X connect 18 0 14 0; #X connect 18 1 19 0; #X connect 19 0 12 3; #X connect 20 0 16 0; #X connect 21 0 20 1; #X connect 23 0 12 2; #X connect 24 0 25 0; #X connect 25 0 3 0; #X connect 25 1 2 0; #X connect 25 2 7 0; #X connect 25 3 9 0; #X connect 25 4 21 0; #X connect 26 0 25 0;