May 1, 2006 at 12:45pm
does anyone know how to set up relative paths that aren’t within the max application folder? i want to select a folder that is in the same level as my patch and read the relative path, so i just get the folder name rather than the absolute path?
May 1, 2006 at 2:35pm
use [sprintf %ssubfolder/subsubfolder] to concat the rest of the folderpath.
May 1, 2006 at 2:43pm
ok i might missunderstand something and in that case please excuse me in
Sorry if my answer if too simple, maybe i got something wrong.
May 1, 2006 at 2:54pm
yeh i have,
but the object relativepath only works for within the max application program. so im having a bit of difficulty trying to just get a relative path from the main folder.
May 1, 2006 at 3:03pm
here is what i have…sorry i couldn’t figure out how/where to put in your suggested object
#P button 35 11 15 0;
Im trying just to get the relative path.
hope you can help?
May 4, 2006 at 1:30pm
appFilePath = “”;
post(“path: ” +this.patcher.filepath);
var tmp = this.patcher.filepath.split(“/”);
post(“Filepath: “+ this.patcher.filepath + “n”);
if (tmp[tmp.length-1] != “MacOS”) tmp.pop(); //remove patcher name
for(var c=0; c
newFilePath = appFilePath + “yourDirectory/”;
May 4, 2006 at 2:14pm
you cant get relative paths that way.
if you have
there is no relative path between max runtime
You must be logged in to reply to this topic.