diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2008-09-01 14:36:04 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2008-09-01 14:36:04 +0000 |
commit | 591854adb9ab77e04766c9ed01b28be9fd9b02a0 (patch) | |
tree | 197820a6aab0a096de98919ffc1ed842ee618e02 /help/canvasindex-help.pd | |
parent | a49bb83dbd713b2ed47b587bbb2d1e8462df4bb5 (diff) |
renamed [parentposition] to [canvasposition] (consistent naming scheme);
added more helppatches
svn path=/trunk/externals/iem/iemguts/; revision=10272
Diffstat (limited to 'help/canvasindex-help.pd')
-rw-r--r-- | help/canvasindex-help.pd | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/help/canvasindex-help.pd b/help/canvasindex-help.pd new file mode 100644 index 0000000..92e969e --- /dev/null +++ b/help/canvasindex-help.pd @@ -0,0 +1,58 @@ +#N canvas 180 165 635 592 10; +#X msg 88 128 bang; +#X obj 81 25 canvasindex; +#X text 207 25 get the ID/index of an abstraction/subpatch within it's +containing patch; +#X text 99 88 this object allows you to dynamically find out indicies +to connect with dynamic patching; +#N canvas 0 0 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 148 t b b; +#N canvas 0 0 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 text 47 547 (c) 2008 IOhannes m zmoelnig; +#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; +#X msg 101 378 bang; +#X floatatom 101 422 5 0 0 0 - - -; +#N canvas 0 0 450 300 objectcount 0; +#X obj 75 48 inlet; +#X obj 75 189 outlet; +#X obj 75 129 canvasindex 1; +#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 connect 0 0 5 0; +#X connect 4 0 8 0; +#X connect 5 0 4 0; +#X connect 5 1 6 0; +#X connect 6 0 7 0; +#X connect 7 0 13 1; +#X connect 8 0 13 0; +#X connect 12 0 11 0; +#X connect 13 0 12 0; +#X connect 14 0 16 0; +#X connect 16 0 15 0; |