Etienne Landon před 8 roky
rodič
revize
e4fdf796d8
1 změnil soubory, kde provedl 237 přidání a 173 odebrání
  1. 237 173
      main.pd

+ 237 - 173
main.pd

@@ -1,61 +1,61 @@
-#N canvas 668 276 726 577 10;
+#N canvas 24 295 726 577 10;
 #X declare -path extra;
-#X obj 42 29 mrpeach/udpreceive 9000;
 #X obj 42 73 route /pose /bone;
 #X obj 42 51 mrpeach/unpackOSC;
-#N canvas 1111 403 722 520 listPoses 0;
-#X obj 110 10 inlet;
-#X obj 110 72 unpack s f;
-#X obj 110 119 text search poses;
-#X obj 110 144 select -1;
-#X obj 110 259 text set poses;
-#X msg 141 238 1e+006;
-#X obj 110 175 symbol;
-#X obj 110 94 t s s;
-#X obj 183 146 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+#N canvas 1111 403 722 559 listPoses 0;
+#X obj 110 30 inlet;
+#X obj 110 92 unpack s f;
+#X obj 110 139 text search poses;
+#X obj 110 164 select -1;
+#X obj 110 279 text set poses;
+#X msg 141 258 1e+006;
+#X obj 110 195 symbol;
+#X obj 110 114 t s s;
+#X obj 183 166 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
 -1 -1;
-#X symbolatom 11 61 10 0 0 0 - - -, f 10;
-#X msg 170 185 found pose \$1;
-#X obj 170 165 symbol;
-#X obj 170 352 list prepend set;
-#X obj 170 374 list trim;
-#X msg 209 419 clear;
-#X obj 170 397 t a b b;
-#X obj 170 497 outlet;
-#X obj 189 441 pipe 5000;
-#X obj 288 340 loadbang;
-#X obj 288 389 sel 0;
-#X msg 288 411 5000;
-#X obj 288 362 \$1;
-#X msg 189 463 set ---;
-#X obj 110 197 t s b s;
-#X msg 198 214 new pose \$1;
-#X obj 409 22 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
+#X symbolatom 11 81 10 0 0 0 - - -, f 10;
+#X msg 170 205 found pose \$1;
+#X obj 170 185 symbol;
+#X obj 170 372 list prepend set;
+#X obj 170 394 list trim;
+#X msg 209 439 clear;
+#X obj 170 417 t a b b;
+#X obj 170 517 outlet;
+#X obj 189 461 pipe 5000;
+#X obj 288 360 loadbang;
+#X obj 288 409 sel 0;
+#X msg 288 431 5000;
+#X obj 288 382 \$1;
+#X msg 189 483 set ---;
+#X msg 198 234 new pose \$1;
+#X obj 409 42 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
 -1;
-#X obj 409 42 text size poses;
-#X obj 409 94 until;
-#X obj 409 116 f;
-#X obj 409 138 t f f;
-#X obj 409 160 text get poses;
-#X obj 409 64 t f b;
-#X msg 463 95 0;
-#X obj 457 138 + 1;
-#X obj 235 31 text define -k poses;
-#A set test \; test1 \; test2 \;;
-#X msg 409 182 append \$1;
-#X msg 487 182 options \, name poses;
-#X obj 443 17 loadbang;
+#X obj 409 62 text size poses;
+#X obj 409 114 until;
+#X obj 409 136 f;
+#X obj 409 158 t f f;
+#X obj 409 180 text get poses;
+#X obj 409 84 t f b;
+#X msg 463 115 0;
+#X obj 457 158 + 1;
+#X obj 235 51 text define -k poses;
+#A set tpose \; larm \;;
+#X msg 409 202 append \$1;
+#X msg 487 202 options \, name poses;
+#X obj 443 37 loadbang;
 #X msg 235 8 clear;
-#X obj 409 207 s poses-popup;
-#X obj 110 32 t a a;
-#X obj 142 53 s poses-in;
-#X connect 0 0 40 0;
+#X obj 409 227 s poses-popup;
+#X obj 110 52 t a a;
+#X obj 142 73 s poses-in;
+#X obj 110 217 t b s b s;
+#X obj 235 30 t b a;
+#X connect 0 0 39 0;
 #X connect 1 0 7 0;
 #X connect 2 0 3 0;
 #X connect 3 0 6 0;
 #X connect 3 1 8 0;
 #X connect 5 0 4 1;
-#X connect 6 0 23 0;
+#X connect 6 0 41 0;
 #X connect 7 0 2 0;
 #X connect 7 1 6 1;
 #X connect 7 1 11 1;
@@ -77,41 +77,46 @@
 #X connect 20 0 17 1;
 #X connect 21 0 19 0;
 #X connect 22 0 16 0;
-#X connect 23 0 4 0;
-#X connect 23 1 5 0;
-#X connect 23 2 24 0;
-#X connect 24 0 12 0;
-#X connect 25 0 26 0;
-#X connect 26 0 31 0;
+#X connect 23 0 12 0;
+#X connect 24 0 25 0;
+#X connect 25 0 30 0;
+#X connect 26 0 27 0;
 #X connect 27 0 28 0;
 #X connect 28 0 29 0;
-#X connect 29 0 30 0;
-#X connect 29 1 33 0;
-#X connect 30 0 35 0;
-#X connect 31 0 27 0;
-#X connect 31 1 32 0;
-#X connect 31 1 36 0;
-#X connect 32 0 28 1;
-#X connect 33 0 28 1;
-#X connect 35 0 39 0;
-#X connect 36 0 39 0;
-#X connect 37 0 26 0;
-#X connect 38 0 34 0;
-#X connect 40 0 1 0;
-#X connect 40 1 41 0;
+#X connect 28 1 32 0;
+#X connect 29 0 34 0;
+#X connect 30 0 26 0;
+#X connect 30 1 31 0;
+#X connect 30 1 35 0;
+#X connect 31 0 27 1;
+#X connect 32 0 27 1;
+#X connect 34 0 38 0;
+#X connect 35 0 38 0;
+#X connect 36 0 25 0;
+#X connect 37 0 42 0;
+#X connect 39 0 1 0;
+#X connect 39 1 40 0;
+#X connect 41 0 25 0;
+#X connect 41 1 4 0;
+#X connect 41 2 5 0;
+#X connect 41 3 23 0;
+#X connect 42 0 24 0;
+#X connect 42 1 33 0;
 #X restore 42 133 pd listPoses;
 #N canvas 146 449 795 300 listBones 0;
 #X obj 110 10 inlet;
-#X obj 110 72 unpack s f;
 #X obj 110 144 select -1;
 #X msg 141 238 1e+006;
 #X obj 110 175 symbol;
 #X obj 110 94 t s s;
 #X symbolatom 11 61 10 0 0 0 - - -, f 10;
-#X obj 110 197 t s b b;
 #X obj 198 236 print poses;
-#X obj 235 21 text define -k bones;
-#A set head \; neck \; spine_base \;;
+#X obj 246 44 text define -k bones;
+#A set head \; neck \; spine_base \; right_hip \; right_knee \; right_shoulder
+\; right_thumb \; right_wrist \; spine_mid \; spine_shoulder \; left_ankle
+\; left_elbow \; left_foot \; left_hand \; left_hand_tip \; left_hip
+\; left_knee \; left_shoulder \; left_thumb \; left_wrist \; right_ankle
+\; right_elbow \; right_foot \; right_hand \; right_hand_tip \;;
 #X obj 110 119 text search bones;
 #X obj 110 259 text set bones;
 #X obj 407 61 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
@@ -128,57 +133,60 @@
 #X obj 407 199 text get bones;
 #X msg 485 221 options \, name bones;
 #X obj 407 246 s bones-popup;
-#X msg 198 214 new bone name;
 #X obj 110 32 t a a;
 #X obj 142 53 s bones-in;
-#X connect 0 0 26 0;
-#X connect 1 0 5 0;
-#X connect 2 0 4 0;
-#X connect 3 0 11 1;
-#X connect 4 0 7 0;
-#X connect 5 0 10 0;
-#X connect 5 1 4 1;
-#X connect 6 0 5 0;
-#X connect 7 0 11 0;
-#X connect 7 1 3 0;
-#X connect 7 2 25 0;
-#X connect 10 0 2 0;
-#X connect 12 0 21 0;
-#X connect 13 0 14 0;
-#X connect 14 0 15 0;
-#X connect 15 0 22 0;
-#X connect 15 1 18 0;
-#X connect 16 0 13 0;
-#X connect 16 1 17 0;
-#X connect 16 1 23 0;
-#X connect 17 0 14 1;
-#X connect 18 0 14 1;
-#X connect 19 0 24 0;
-#X connect 20 0 21 0;
-#X connect 21 0 16 0;
-#X connect 22 0 19 0;
-#X connect 23 0 24 0;
-#X connect 25 0 8 0;
-#X connect 26 0 1 0;
-#X connect 26 1 27 0;
+#X msg 198 214 new bone \$1;
+#X obj 110 197 t b s b s;
+#X obj 110 72 unpack s s f f f;
+#X connect 0 0 23 0;
+#X connect 1 0 3 0;
+#X connect 2 0 9 1;
+#X connect 3 0 26 0;
+#X connect 4 0 8 0;
+#X connect 4 1 3 1;
+#X connect 5 0 4 0;
+#X connect 8 0 1 0;
+#X connect 10 0 19 0;
+#X connect 11 0 12 0;
+#X connect 12 0 13 0;
+#X connect 13 0 20 0;
+#X connect 13 1 16 0;
+#X connect 14 0 11 0;
+#X connect 14 1 15 0;
+#X connect 14 1 21 0;
+#X connect 15 0 12 1;
+#X connect 16 0 12 1;
+#X connect 17 0 22 0;
+#X connect 18 0 19 0;
+#X connect 19 0 14 0;
+#X connect 20 0 17 0;
+#X connect 21 0 22 0;
+#X connect 23 0 27 0;
+#X connect 23 1 24 0;
+#X connect 25 0 6 0;
+#X connect 26 0 19 0;
+#X connect 26 1 9 0;
+#X connect 26 2 2 0;
+#X connect 26 3 25 0;
+#X connect 27 0 4 0;
 #X restore 100 98 pd listBones;
 #X msg 42 155 ---;
 #X obj 41 4 declare -path extra;
-#X obj 329 88 flatgui/popup 124 25 #ffffff poses test test1 test2;
-#X obj 329 67 r poses-popup;
+#X obj 278 60 flatgui/popup 124 25 #ffffff poses tpose larm;
+#X obj 278 39 r poses-popup;
 #X obj 469 88 flatgui/popup 124 25 #ffffff bones head neck spine_base
-;
+right_hip right_knee right_shoulder right_thumb right_wrist spine_mid
+spine_shoulder left_ankle left_elbow left_foot left_hand left_hand_tip
+left_hip left_knee left_shoulder left_thumb left_wrist right_ankle
+right_elbow right_foot right_hand right_hand_tip;
 #X obj 469 67 r bones-popup;
 #X obj 475 156 r bones-in;
-#X obj 475 198 select bone;
-#X obj 475 220 unpack s f f f;
-#X floatatom 506 246 5 0 0 0 - - -, f 5;
-#X floatatom 531 271 5 0 0 0 - - -, f 5;
-#X floatatom 552 295 5 0 0 0 - - -, f 5;
-#N canvas 0 50 615 554 toUE4 0;
+#X floatatom 506 286 5 0 0 0 - - -, f 5;
+#X floatatom 531 311 5 0 0 0 - - -, f 5;
+#X floatatom 552 335 5 0 0 0 - - -, f 5;
+#N canvas 0 50 615 554 toUE4 1;
 #X obj 19 211 list trim;
 #X obj 19 233 mrpeach/packOSC;
-#X obj 182 76 r OSCout;
 #X msg 377 79 /sequence A;
 #X obj 138 214 loadbang;
 #X msg 300 53 /blend \$1;
@@ -190,8 +198,7 @@
 #X msg 205 135 /avatar0317/rate \$1;
 #X floatatom 206 155 5 0 0 0 - - -, f 5;
 #X msg 205 175 /avatar0317/pos \$1;
-#X obj 18 260 mrpeach/udpsend;
-#X obj 23 162 r toUE4;
+#X obj 14 148 r toUE4;
 #X obj 37 407 list prepend set;
 #X obj 37 429 list trim;
 #X msg 76 474 clear;
@@ -216,74 +223,131 @@
 #X obj 425 417 \$1;
 #X msg 326 518 set ---;
 #X obj 307 374 r fromUE4;
-#X msg 138 234 disconnect \, connect 127.0.0.1 8000;
 #X obj 18 282 == 0;
 #X obj 18 304 metro 500;
 #X msg 31 35 /avatar/blendPoses \$1;
 #X obj 54 -100 vsl 15 128 0 1 0 0 empty empty empty 0 -9 0 10 -262144
--1 -1 0 1;
+-1 -1 12700 1;
+#X msg 138 234 disconnect \, connect 127.0.0.1 8001;
+#X obj 18 260 mrpeach/udpsend;
 #X connect 0 0 1 0;
-#X connect 1 0 13 0;
+#X connect 1 0 42 0;
 #X connect 2 0 1 0;
-#X connect 3 0 1 0;
-#X connect 4 0 39 0;
-#X connect 5 0 1 0;
-#X connect 6 0 5 0;
-#X connect 7 0 1 0;
-#X connect 8 0 7 0;
-#X connect 9 0 10 0;
-#X connect 13 0 40 0;
-#X connect 14 0 0 0;
-#X connect 15 0 16 0;
-#X connect 16 0 18 0;
-#X connect 17 0 20 0;
-#X connect 18 0 19 0;
-#X connect 18 1 20 0;
-#X connect 18 2 17 0;
-#X connect 20 0 25 0;
-#X connect 21 0 24 0;
-#X connect 21 0 25 0;
-#X connect 22 0 23 0;
-#X connect 22 1 20 1;
-#X connect 23 0 20 1;
-#X connect 24 0 22 0;
-#X connect 25 0 19 0;
-#X connect 26 0 15 0;
-#X connect 27 0 28 0;
-#X connect 28 0 30 0;
-#X connect 29 0 32 0;
-#X connect 30 0 31 0;
-#X connect 30 1 32 0;
-#X connect 30 2 29 0;
-#X connect 32 0 37 0;
-#X connect 33 0 36 0;
-#X connect 33 0 37 0;
-#X connect 34 0 35 0;
-#X connect 34 1 32 1;
-#X connect 35 0 32 1;
-#X connect 36 0 34 0;
-#X connect 37 0 31 0;
-#X connect 38 0 27 0;
-#X connect 39 0 13 0;
-#X connect 40 0 41 0;
-#X connect 41 0 39 0;
-#X connect 42 0 0 0;
-#X connect 43 0 42 0;
+#X connect 3 0 41 0;
+#X connect 4 0 1 0;
+#X connect 5 0 4 0;
+#X connect 6 0 1 0;
+#X connect 7 0 6 0;
+#X connect 8 0 9 0;
+#X connect 12 0 0 0;
+#X connect 13 0 14 0;
+#X connect 14 0 16 0;
+#X connect 15 0 18 0;
+#X connect 16 0 17 0;
+#X connect 16 1 18 0;
+#X connect 16 2 15 0;
+#X connect 18 0 23 0;
+#X connect 19 0 22 0;
+#X connect 19 0 23 0;
+#X connect 20 0 21 0;
+#X connect 20 1 18 1;
+#X connect 21 0 18 1;
+#X connect 22 0 20 0;
+#X connect 23 0 17 0;
+#X connect 24 0 13 0;
+#X connect 25 0 26 0;
+#X connect 26 0 28 0;
+#X connect 27 0 30 0;
+#X connect 28 0 29 0;
+#X connect 28 1 30 0;
+#X connect 28 2 27 0;
+#X connect 30 0 35 0;
+#X connect 31 0 34 0;
+#X connect 31 0 35 0;
+#X connect 32 0 33 0;
+#X connect 32 1 30 1;
+#X connect 33 0 30 1;
+#X connect 34 0 32 0;
+#X connect 35 0 29 0;
+#X connect 36 0 25 0;
+#X connect 37 0 38 0;
+#X connect 38 0 41 0;
+#X connect 39 0 0 0;
+#X connect 40 0 39 0;
+#X connect 41 0 42 0;
+#X connect 42 0 37 0;
 #X restore 100 497 pd toUE4;
 #N canvas 0 50 450 300 todo 0;
 #X text 16 20 add gem rendering through spout for JA monitor with;
 #X text 38 40 UI elements (show in control etc);
 #X restore 184 4 pd todo;
+#X obj 42 29 mrpeach/udpreceive 8000;
+#X obj 475 198 route bone;
+#X obj 475 260 unpack s f f f;
+#X obj 210 162 r poses-in;
+#X obj 210 184 route pose;
+#X obj 210 226 > 0.85;
+#X obj 210 248 route 1;
+#X floatatom 266 221 5 0 0 0 - - -, f 5;
+#X obj 214 277 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+-1 -1;
+#X obj 315 165 r poses-in;
+#X obj 315 187 route pose;
+#X obj 315 229 > 0.85;
+#X floatatom 371 224 5 0 0 0 - - -, f 5;
+#X obj 319 280 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+-1 -1;
+#X obj 308 120 flatgui/popup 124 25 #ffffff poses tpose larm;
+#X obj 308 99 r poses-popup;
+#X msg 270 423 /avatar/blendPoses \$1;
+#X obj 293 288 vsl 15 128 0 1 0 0 empty empty empty 0 -9 0 10 -262144
+-1 -1 0 1;
+#X obj 251 465 s toUE4;
+#X msg 239 273 1;
+#X msg 339 274 0;
+#X obj 364 304 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
+1;
+#X obj 315 251 route 1;
+#X obj 364 324 change;
+#X msg 364 354 \$1 500;
+#X obj 364 376 line;
+#X msg 100 519 ---;
+#X msg 153 542;
 #X connect 0 0 2 0;
-#X connect 1 0 3 0;
-#X connect 1 1 4 0;
-#X connect 2 0 1 0;
-#X connect 3 0 5 0;
-#X connect 8 0 7 0;
-#X connect 9 1 12 1;
-#X connect 10 0 9 0;
-#X connect 11 0 12 0;
-#X connect 12 0 13 0;
-#X connect 13 1 14 0;
-#X connect 13 2 15 0;
-#X connect 13 3 16 0;
+#X connect 0 1 3 0;
+#X connect 1 0 0 0;
+#X connect 2 0 4 0;
+#X connect 6 1 20 1;
+#X connect 7 0 6 0;
+#X connect 8 1 17 1;
+#X connect 9 0 8 0;
+#X connect 10 0 17 0;
+#X connect 14 0 42 0;
+#X connect 14 1 43 0;
+#X connect 16 0 1 0;
+#X connect 17 0 18 0;
+#X connect 18 1 11 0;
+#X connect 18 2 12 0;
+#X connect 18 3 13 0;
+#X connect 19 0 20 0;
+#X connect 20 0 21 0;
+#X connect 21 0 22 0;
+#X connect 22 0 24 0;
+#X connect 22 0 35 0;
+#X connect 23 0 21 1;
+#X connect 25 0 26 0;
+#X connect 26 0 27 0;
+#X connect 27 0 38 0;
+#X connect 28 0 27 1;
+#X connect 30 1 26 1;
+#X connect 31 0 30 0;
+#X connect 32 0 34 0;
+#X connect 33 0 32 0;
+#X connect 35 0 37 0;
+#X connect 36 0 37 0;
+#X connect 37 0 39 0;
+#X connect 38 0 29 0;
+#X connect 38 0 36 0;
+#X connect 39 0 40 0;
+#X connect 40 0 41 0;
+#X connect 41 0 33 0;