diff options
Diffstat (limited to 'editor/obj-render.pd')
-rw-r--r-- | editor/obj-render.pd | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/editor/obj-render.pd b/editor/obj-render.pd new file mode 100644 index 0000000..cf4e920 --- /dev/null +++ b/editor/obj-render.pd @@ -0,0 +1,141 @@ +#N canvas 296 110 918 736 10; +#X obj 258 140 textfile; +#N canvas 550 94 450 300 tri 0; +#X restore 258 617 pd tri; +#X msg 634 126 rewind; +#X obj 258 100 until; +#X obj 258 586 s pd-tri; +#X msg 95 532 clear; +#X obj 258 415 s2l /; +#X obj 258 377 unpack s s s; +#X msg 258 446 \$1; +#X obj 302 415 s2l /; +#X msg 302 448 \$1; +#X obj 340 414 s2l /; +#X msg 340 447 \$1; +#X obj 258 518 pack 0 0 0; +#X obj 258 482 - 1; +#X obj 302 480 - 1; +#X obj 340 482 - 1; +#X obj 258 219 route f v; +#X msg 465 358 mass 0-m 1 100 \$1 \$2 \$3; +#X msg 475 431 link 0-l \$1 \$2 10 2.5 1.5; +#X msg 475 402 \$1 \$2 \, \$2 \$3 \, \$3 \$1; +#X msg 488 478 reset; +#X obj 258 68 t b b; +#N canvas 282 359 730 665 find-min-max 0; +#X obj 166 448 outlet; +#X obj 100 66 inlet; +#X obj 182 26 inlet; +#X obj 235 133 inlet; +#X obj 182 124 abs; +#X obj 182 223 spigot; +#X obj 182 158 t f f; +#X obj 166 388 pack 0 0; +#X msg 166 414 Xmin \$1 \, Xmax \$2 \, Ymin \$1 \, Ymax \$2 \, Zmin +\$1 \, Zmax \$2; +#X obj 166 347 * -1; +#X obj 166 323 t f f; +#X obj 166 265 f 4; +#X obj 219 197 > 4; +#X msg 235 168 4; +#X text 251 221 find maximum of all x \, y \, z; +#X text 293 134 rest; +#X text 216 326 at end \, send max to msd3D; +#X obj 166 291 + 1; +#X obj 182 52 t a a a; +#X msg 251 80 \$1; +#X msg 217 80 \$2; +#X msg 182 82 \$3; +#X connect 1 0 11 0; +#X connect 2 0 18 0; +#X connect 3 0 13 0; +#X connect 4 0 6 0; +#X connect 5 0 11 1; +#X connect 6 0 5 0; +#X connect 6 1 12 0; +#X connect 7 0 8 0; +#X connect 8 0 0 0; +#X connect 9 0 7 0; +#X connect 10 0 9 0; +#X connect 10 1 7 1; +#X connect 11 0 17 0; +#X connect 12 0 5 1; +#X connect 13 0 12 1; +#X connect 17 0 10 0; +#X connect 18 0 21 0; +#X connect 18 1 20 0; +#X connect 18 2 19 0; +#X connect 19 0 4 0; +#X connect 20 0 4 0; +#X connect 21 0 4 0; +#X restore 368 267 pd find-min-max; +#X obj 316 101 s \$0-obj-import-init; +#X obj 468 237 r \$0-obj-import-init; +#X obj 488 457 r \$0-obj-import-init; +#X obj 95 507 r \$0-obj-import-init; +#X obj 107 100 r \$0-ob-import-file; +#X obj 492 158 s \$0-ob-import-file; +#X obj 492 60 openpanel; +#X obj 492 38 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X msg 511 125 print; +#X msg 492 103 read \$1 cr \, rewind; +#X msg 578 127 bang; +#X msg 258 33 bang; +#X obj 634 100 r \$0-obj-import-init; +#X msg 364 182 \; pd-tri loadbang; +#X msg 258 543 obj 0 0 mytri \$1 \$2 \$3; +#X obj 466 82 t b a; +#X obj 492 13 inlet; +#X obj 655 547 inlet; +#X obj 258 564 spigot; +#X obj 465 510 outlet; +#X connect 0 0 17 0; +#X connect 0 1 3 1; +#X connect 0 1 23 0; +#X connect 0 1 37 0; +#X connect 2 0 29 0; +#X connect 3 0 0 0; +#X connect 5 0 4 0; +#X connect 6 0 8 0; +#X connect 7 0 6 0; +#X connect 7 1 9 0; +#X connect 7 2 11 0; +#X connect 8 0 14 0; +#X connect 9 0 10 0; +#X connect 10 0 15 0; +#X connect 11 0 12 0; +#X connect 12 0 16 0; +#X connect 13 0 38 0; +#X connect 13 0 20 0; +#X connect 14 0 13 0; +#X connect 15 0 13 1; +#X connect 16 0 13 2; +#X connect 17 0 7 0; +#X connect 17 1 18 0; +#X connect 17 1 23 1; +#X connect 18 0 43 0; +#X connect 19 0 43 0; +#X connect 20 0 19 0; +#X connect 21 0 43 0; +#X connect 22 0 3 0; +#X connect 22 1 24 0; +#X connect 23 0 43 0; +#X connect 25 0 23 2; +#X connect 26 0 21 0; +#X connect 27 0 5 0; +#X connect 28 0 0 0; +#X connect 30 0 39 0; +#X connect 31 0 30 0; +#X connect 32 0 29 0; +#X connect 33 0 29 0; +#X connect 34 0 29 0; +#X connect 35 0 22 0; +#X connect 36 0 2 0; +#X connect 38 0 42 0; +#X connect 39 0 35 0; +#X connect 39 1 33 0; +#X connect 40 0 31 0; +#X connect 41 0 42 1; +#X connect 42 0 4 0; |