From 7f502b606e94b9a399e33df8613fdf9fd64126c6 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 17 May 2006 08:18:31 +0000 Subject: dashed out a quick help file svn path=/trunk/externals/ggee/; revision=5069 --- control/getdir-help.pd | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 control/getdir-help.pd (limited to 'control/getdir-help.pd') diff --git a/control/getdir-help.pd b/control/getdir-help.pd new file mode 100644 index 0000000..e7f2f3c --- /dev/null +++ b/control/getdir-help.pd @@ -0,0 +1,22 @@ +#N canvas 196 88 460 383 10; +#X obj 177 95 getdir; +#X msg 177 57 bang; +#X obj 176 133 print; +#X text 17 21 get the directory that this patch is operating in:; +#X text 18 165 You can also get the path of the parent patch \, if +this patch is an object embedded in another patch. You use the argument +to set how many levels up to go:; +#X msg 99 212 bang; +#X obj 98 288 print; +#X obj 99 250 getdir 1; +#X msg 294 209 bang; +#X obj 293 285 print; +#X obj 294 247 getdir 2; +#X text 18 331 If there is no parent at that level \, it returns the +directory as if there was no argument \, i.e. level 0; +#X connect 0 0 2 0; +#X connect 1 0 0 0; +#X connect 5 0 7 0; +#X connect 7 0 6 0; +#X connect 8 0 10 0; +#X connect 10 0 9 0; -- cgit v1.2.1