#N canvas 496 261 810 427 10;
#N canvas 398 337 522 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 5 KEYWORDS introspection;
#X text 12 75 INLET_0 msg...;
#X text 12 45 DESCRIPTION send messages to an arbitrary object in the
specified (parent) canvas., f 83;
#X text 12 95 INLET_1 float;
#X restore 260 388 pd META;
#X obj 81 25 sendcanvasobject;
#X text 198 25 send messages to an arbitrary object in the specified
(parent) canvas., f 76;
#X text 71 390 (c) 2022 IOhannes m zmoelnig;
#X text 53 194 but you can also send to a message to a parent-canvas
(of any depth), f 53;
#N canvas 0 0 1292 545 sendcanvas 0;
#X obj 147 72 inlet;
#X text 302 140 "1" means that the message is sent to the parent-patch
(depth:1);
#X obj 147 166 sendcanvasobject 1 0;
#X text 302 190 "0" means that the message is sent to the first object
in the designated canvas;
#X obj 978 273 canvasindex 0;
#X obj 1054 324 route class;
#X obj 1054 347 route message;
#X msg 1054 370 1;
#X obj 1053 299 t a b;
#X msg 1086 370 0;
#X obj 1054 393 t f;
#X obj 978 396 spigot;
#X obj 978 449 route float;
#X msg 888 78 bang;
#X obj 915 131 canvasindex;
#X obj 978 157 t f b;
#X obj 978 180 until;
#X obj 978 203 i;
#X obj 978 226 t f f;
#X msg 1018 176 0;
#X obj 1019 216 + 1;
#X obj 978 420 route binbuf;
#X obj 978 472 t b;
#X obj 978 252 t f f;
#X obj 978 495 f;
#X obj 933 78 loadbang;
#X obj 888 105 t b b;
#X obj 834 192 canvasindex;
#X msg 834 171 symbol print;
#X obj 834 215 t f f;
#X obj 861 521 sendcanvasobject 1 0;
#X msg 861 342 set \$1 \, bang;
#X text 735 25 here we get the index of the msgbox that holds the canvasobject-index
\, and use it to set the msgbox to the index of the [print] object.
;
#X connect 0 0 2 0;
#X connect 4 0 11 0;
#X connect 4 1 8 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 7 0 10 0;
#X connect 8 0 5 0;
#X connect 8 1 9 0;
#X connect 9 0 10 0;
#X connect 10 0 11 1;
#X connect 11 0 21 0;
#X connect 12 0 22 0;
#X connect 13 0 26 0;
#X connect 14 1 15 0;
#X connect 15 0 16 0;
#X connect 15 1 19 0;
#X connect 16 0 17 0;
#X connect 17 0 18 0;
#X connect 18 0 23 0;
#X connect 18 1 20 0;
#X connect 19 0 17 1;
#X connect 20 0 17 1;
#X connect 21 0 12 0;
#X connect 22 0 24 0;
#X connect 23 0 4 0;
#X connect 23 1 24 1;
#X connect 24 0 30 1;
#X connect 25 0 26 0;
#X connect 26 0 28 0;
#X connect 26 1 14 0;
#X connect 27 0 29 0;
#X connect 28 0 27 0;
#X connect 29 0 2 1;
#X connect 29 1 31 0;
#X connect 31 0 30 0;
#X restore 99 278 pd sendcanvas;
#X obj 88 151 sendcanvasobject;
#X msg 88 100 world;
#X msg 189 129 12;
#X text 131 101 send a message;
#X text 217 129 first select the object;
#X msg 99 248 goodbye;
#X obj 553 223 print HELLO;
#X text 504 156 the [print HELLO] gets the messages \, even though
it is not connected! pure magic, f 36;
#X connect 7 0 6 0;
#X connect 8 0 6 1;
#X connect 11 0 5 0;
