path-help.pd 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. #N canvas 1 53 1002 632 10;
  2. #X obj 27 587 print RESULT;
  3. #X obj 27 336 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
  4. -1;
  5. #X obj 27 560 path;
  6. #X obj 32 11 cnv 15 400 100 empty empty empty 20 12 0 14 -249661 -66577
  7. 0;
  8. #X text 37 56 author: mrtoftrash@gmail.com;
  9. #X text 37 67 version: 2009-06-07 (initial release);
  10. #X text 52 332 <- a bang will output the root patch's path;
  11. #X text 171 355 <- Sending a relative path will append that path to
  12. the root patch's path;
  13. #X text 86 429 Linux and OS X;
  14. #X text 93 469 Windows;
  15. #X obj 517 34 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
  16. -1;
  17. #X text 542 32 <- a bang will output the root patch's path;
  18. #X obj 543 102 openpanel;
  19. #X obj 543 82 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
  20. -1;
  21. #X symbolatom 543 124 50 0 0 0 - - -;
  22. #X symbolatom 517 223 50 0 0 0 - - -;
  23. #X text 548 50 Anything else will be treated as a path;
  24. #X obj 517 192 path relative;
  25. #X text 672 148 <- Relative paths are unchanged;
  26. #X text 84 416 Absolute paths are unchanged;
  27. #X obj 518 272 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
  28. -1;
  29. #X obj 518 365 print CURRENT;
  30. #X obj 518 338 path current;
  31. #X text 548 272 <- a bang will output the current patch's path;
  32. #X text 38 11 description: outputs or transform paths.;
  33. #X text 37 45 tags: file tof;
  34. #X text 176 162 -- keywords --;
  35. #X text 683 250 -- current --;
  36. #X text 648 304 <- Sending a relative path will append that path to
  37. the current patch's path;
  38. #X text 658 9 -- relative --;
  39. #X obj 518 415 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
  40. -1;
  41. #X obj 544 483 openpanel;
  42. #X obj 544 463 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  43. -1 -1;
  44. #X symbolatom 544 505 50 0 0 0 - - -;
  45. #X symbolatom 518 594 50 0 0 0 - - -;
  46. #X text 549 431 Anything else will be treated as a path;
  47. #X text 671 527 <- Relative paths are unchanged;
  48. #X text 653 387 -- relative & current --;
  49. #X obj 518 563 path relative current;
  50. #X text 543 413 <- a bang will output the current patch's path;
  51. #X text 564 72 Absolute paths will be made relative to the root patch's
  52. path;
  53. #X text 569 454 Absolute paths will be made relative to the current
  54. patch's path;
  55. #X msg 566 148 symbol samples/;
  56. #X msg 546 305 symbol samples/;
  57. #X msg 567 529 symbol samples/;
  58. #X msg 68 355 symbol samples/;
  59. #X msg 87 450 symbol /unchanged/because/of/the/slash/at/the/start;
  60. #X msg 86 489 symbol C:/unchanged/because/of/the/:/as/second/char;
  61. #X msg 86 511 symbol C:/Documents and Settings/tom/My Documents/pd/parent.test.pd
  62. ;
  63. #X text 128 309 -- default behavior (absolute root) --;
  64. #X text 27 191 current: use the current patch's path.;
  65. #X text 26 207 root: use the root patch's path.;
  66. #X text 24 242 relative: transform absolute paths into relative paths
  67. ;
  68. #X text 24 255 absolute: transform relative paths into absolute paths
  69. ;
  70. #X text 29 113 [path] can convert relative paths to absolute paths
  71. or the other way around.;
  72. #N canvas 400 289 494 344 META 0;
  73. #X text 12 125 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
  74. Wilkes for Pd version 0.42.;
  75. #X text 12 45 LICENSE GPL v2;
  76. #X text 12 105 AUTHOR Thomas Ouellet Fredericks;
  77. #X text 12 5 KEYWORDS control filesystem;
  78. #X text 12 25 DESCRIPTION outputs or transform paths;
  79. #X text 12 65 INLET_0 bang symbol;
  80. #X text 12 85 OUTLET_0 symbol;
  81. #X restore 936 594 pd META;
  82. #X connect 1 0 2 0;
  83. #X connect 2 0 0 0;
  84. #X connect 10 0 17 0;
  85. #X connect 12 0 14 0;
  86. #X connect 13 0 12 0;
  87. #X connect 14 0 17 0;
  88. #X connect 17 0 15 0;
  89. #X connect 20 0 22 0;
  90. #X connect 22 0 21 0;
  91. #X connect 30 0 38 0;
  92. #X connect 31 0 33 0;
  93. #X connect 32 0 31 0;
  94. #X connect 33 0 38 0;
  95. #X connect 38 0 34 0;
  96. #X connect 42 0 17 0;
  97. #X connect 43 0 22 0;
  98. #X connect 44 0 38 0;
  99. #X connect 45 0 2 0;
  100. #X connect 46 0 2 0;
  101. #X connect 47 0 2 0;
  102. #X connect 48 0 2 0;