#N canvas 258 64 674 791 10;
#X text 48 441 you can specify the depth of the parent-patch via a
optional argument:;
#X text 219 473 will work on the grandparent (parent-depth:2) of this
patch;
#X msg 98 124 bang;
#X obj 98 172 unpack;
#X floatatom 137 194 5 0 0 0 - - -;
#X floatatom 98 194 5 0 0 0 - - -;
#N canvas 5 51 648 414 getpos 0;
#X obj 75 48 inlet;
#X obj 75 189 outlet;
#X obj 75 129 canvasobjectposition 1 14;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X restore 98 148 pd getpos;
#N canvas 0 0 450 300 setpos 0;
#X obj 75 48 inlet;
#X obj 167 63 loadbang;
#X msg 167 84 350 200;
#X obj 75 129 canvasobjectposition 1 14;
#X connect 0 0 3 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X restore 108 332 pd setpos;
#X obj 111 290 hsl 128 15 300 400 0 0 empty empty empty -2 -8 0 10
-262144 -1 -1 0 1;
#X obj 48 28 canvasobjectposition;
#X text 207 25 get/set the position of an arbitrary object in the specified
(parent) canvas.;
#X text 217 143 you can move this object and click "bang" again;
#X text 363 164 |;
#X text 364 176 V;
#X obj 314 200 blabla;
#X msg 108 310 \$1 200;
#X text 50 534 you can specify the object to set/query via a 2nd optional
argument \, or via the 2nd inlet;
#X obj 52 475 canvasobjectposition 2;
#X obj 53 595 canvasobjectposition 0 14;
#X text 240 594 will work on object #14 in this patch;
#X msg 225 570 14;
#X text 39 88 this object allows you to retrieve the position of any
object (with a known index) within it's containing canvas;
#X text 54 260 you can move an object around (without any hackish mouse
emulation);
#X text 53 394 arguments:;
#X text 60 681 (c) 2018 IOhannes m zmoelnig;
#X obj 53 618 print position;
#X obj 126 643 print canvassize;
#X obj 200 620 print info;
#X msg 113 573 350 210;
#X msg 53 573 bang;
#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 11 65 INLET_0 bang \, list;
#X text 12 45 DESCRIPTION get/set the position of an arbitrary object
in the specified (parent) canvas., f 90;
#X text 11 83 INLET_1 float;
#X restore 613 32 pd META;
#X connect 2 0 6 0;
#X connect 3 0 5 0;
#X connect 3 1 4 0;
#X connect 6 0 3 0;
#X connect 8 0 15 0;
#X connect 15 0 7 0;
#X connect 18 0 25 0;
#X connect 18 1 26 0;
#X connect 18 2 27 0;
#X connect 20 0 18 1;
#X connect 28 0 18 0;
#X connect 29 0 18 0;
