Forums > MaxMSP

Ubmenu and relative folder path

April 7, 2006 | 2:54 pm

I’m sure this has been discussed but a search of the archive didn’t return
anything.

How do a set the folder for a ubmenu to refence a subfolder no matter where
the higher folder is moved.

Cheers,
Gary Lee Nelson
TIMARA Department
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson


April 7, 2006 | 4:01 pm

This one is pretty simple if you just bare with me. Basically you need to use the ‘thispatcher’ object. I’ve attached an example patch that should do the trick.. You’ll see that when you load it up the file path of where you saved the patch is set and sent to the ubumenu.

If you want a preset (i.e. no auto populate) list in relative folders you might have to add the folder name to the item in the list.

Only major downside is that this doesn’t seem to work if you build the patch as a standalone

Hope this helps


April 7, 2006 | 4:03 pm

sorry here it is


April 7, 2006 | 4:08 pm

last try


April 7, 2006 | 4:11 pm

K heres a screen grab.. just copy the code into max.. and you have to bang path yourself the first time.

Sorry man can’t seem to upload on this forum :(


April 7, 2006 | 4:35 pm

Finally here’s a link to a page where you can download it.. sorry bout all this

http://ddm.caad.ed.ac.uk/studentpages/s0568055/rpath.html

(might have to change file extension to .mxb)


April 7, 2006 | 4:39 pm

One last thing.. the thispatcher object has to be on your main patcher window otherwise it won’t work.. so don’t put it in your subpatches what ever you do


April 7, 2006 | 5:01 pm

I’ve got four messages from you but none have attachments or code. I
downloaded relativepath but is has no inlets or outlets.
Cheers,
Gary Lee Nelson
TIMARA Department
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson


April 7, 2006 | 5:10 pm

Nah man its a max patch, not an object.. change the extension to .mxb and open it in max so you can copy the code into the patch your working on.. as I said before the this patcher object has to be on your main patch window for this to work.. would have been nice if I could attach the file but it doesn’t seem to work… maybe cause I just joined or something


April 7, 2006 | 6:38 pm

I download with .mxb. Just won’t open. Can you send the patch as text in a
message?
Cheers,
Gary Lee Nelson
TIMARA Department
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson



jln
April 7, 2006 | 8:48 pm

here it is :

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 22 26 48 196617 loadbang;
#P window linecount 0;
#P message 168 263 50 196617;
#P window linecount 1;
#P newex 168 234 62 196617 prepend set;
#P user ubumenu 73 184 100 196617 0 1 1 0;
#X prefix_set 0 0 mst:/Users/jln/Desktop/ 0;
#P window linecount 3;
#P message 186 185 50 196617 mst:/Users/jln/Desktop/;
#P window linecount 1;
#P newex 186 151 62 196617 prepend set;
#P newex 73 150 76 196617 prepend prefix;
#P message 22 65 29 196617 path;
#N thispatcher;
#Q end;
#P newobj 22 98 61 196617 thispatcher;
#P comment 255 263 60 196617 jonny cash;
#P connect 4 0 5 0;
#P connect 1 1 3 0;
#P fasten 1 1 4 0 191 115;
#P connect 7 0 8 0;
#P fasten 6 1 7 0 123 217 173 217;
#P connect 3 0 6 0;
#P connect 2 0 1 0;
#P connect 9 0 2 0;
#P window clipboard copycount 10;

Julien.


April 7, 2006 | 9:52 pm

Thanks. Almost exactly what I came up with when read that thispatcher could
give me the parent folder.

Cheers,
Gary Lee Nelson
TIMARA Department
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson


Viewing 12 posts - 1 through 12 (of 12 total)