#N canvas 294 211 1085 590 10;
#X obj 81 25 canvasindex;
#X msg 101 378 bang;
#X floatatom 101 422 5 0 0 0 - - -;
#X msg 88 118 bang;
#X text 207 25 get the ID/index of an abstraction/subpatch within it's
containing patch;
#X text 95 71 this object allows you to dynamically find out indices
to connect with dynamic patching;
#N canvas 6 61 450 300 object1 0;
#X obj 75 48 inlet;
#X obj 75 189 outlet;
#X obj 75 129 canvasindex;
#X obj 324 59 inlet;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X restore 88 168 pd object1;
#X obj 88 138 t b b;
#N canvas 6 61 450 300 object2 0;
#X obj 75 48 inlet;
#X obj 75 189 outlet;
#X obj 75 129 canvasindex;
#X obj 281 205 outlet;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X restore 188 168 pd object2;
#X floatatom 188 191 5 0 0 0 - - -;
#X floatatom 88 192 5 0 0 0 - - -;
#X obj 88 288 namecanvas \$0-canvas;
#X obj 88 269 send \$0-canvas;
#X msg 88 245 connect \$2 1 \$1 1;
#X obj 88 222 pack;
#N canvas 6 61 450 300 objectcount 0;
#X obj 75 48 inlet;
#X obj 75 189 outlet;
#X obj 75 129 canvasindex;
#X connect 0 0 2 0;
#X connect 2 1 1 0;
#X restore 101 398 pd objectcount;
#X text 71 347 the second outlet tells you \, how many objects the
parent patch contains in total.;
#X text 55 461 you can specify the depth of the parent-patch via a
optional argument:;
#X obj 79 496 canvasindex 2;
#X text 178 494 will work on the grandparent (parent-depth:2) of this
patch;
#X msg 556 212 symbol send;
#N canvas 6 61 450 300 object 0;
#X obj 40 23 inlet;
#X obj 40 46 canvasindex;
#X obj 40 69 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X restore 556 265 pd object by name;
#X floatatom 556 288 5 0 0 0 - - -;
#X symbolatom 576 241 0 0 0 0 - - -;
#X obj 556 310 print objectindex;
#N canvas 6 61 450 300 object 0;
#X obj 40 23 inlet;
#X obj 40 46 canvasindex;
#X obj 40 69 outlet;
#X obj 103 69 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X restore 676 265 pd object by index;
#X floatatom 676 242 5 0 0 0 - - -;
#X obj 781 285 print objectclass;
#X obj 676 288 print object;
#X msg 676 212 0;
#X text 47 547 (c) 2018 IOhannes m zmoelnig;
#X obj 613 497 canvasindex -1;
#X obj 613 520 print a;
#X obj 685 521 print b;
#X text 550 160 you can also use this object to get the index of an
object by name \, or the class and name+arguments of an object by index:
;
#X text 606 428 using an index of "-1" will make the object work on
*this* patch:, f 49;
#X msg 613 468 bang;
#X msg 663 468 0;
#X msg 708 468 symbol canvasindex;
#N canvas 748 407 553 344 META 0;
#X text 12 25 LICENSE GPL v2;
#X text 12 145 AUTHOR IOhannes m zmoelnig;
#X text 12 165 HELP_PATCH_AUTHORS IOhannes m zmölnig;
#X text 12 105 OUTLET_0 list;
#X text 12 5 KEYWORDS introspection;
#X text 12 45 DESCRIPTION get the ID/index of an abstraction/subpatch
within it's containing patch, f 86;
#X text 11 65 INLET_0 bang \, float \, symbol;
#X text 12 122 OUTLET_1 float;
#X restore 893 32 pd META;
#X connect 1 0 15 0;
#X connect 3 0 7 0;
#X connect 6 0 10 0;
#X connect 7 0 6 0;
#X connect 7 1 8 0;
#X connect 8 0 9 0;
#X connect 9 0 14 1;
#X connect 10 0 14 0;
#X connect 13 0 12 0;
#X connect 14 0 13 0;
#X connect 15 0 2 0;
#X connect 20 0 21 0;
#X connect 21 0 22 0;
#X connect 22 0 24 0;
#X connect 23 0 21 0;
#X connect 25 0 28 0;
#X connect 25 1 27 0;
#X connect 26 0 25 0;
#X connect 29 0 26 0;
#X connect 31 0 32 0;
#X connect 31 1 33 0;
#X connect 36 0 31 0;
#X connect 37 0 31 0;
#X connect 38 0 31 0;
