aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--control/getdir-help.pd22
1 files changed, 22 insertions, 0 deletions
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;