ubumenu prefix path

Sep 8, 2007 at 1:31am

ubumenu prefix path

Here is a patch demonstrating the problem, if anyone is curious what
I’m talking about.

b

Barry Threw
Media Art and Technology

San Francisco, CA Work: 857-544-3967
Email: bthrew@gmail.com
IM: captogreadmore (AIM)
http:/www.barrythrew.com

#33586
Sep 8, 2007 at 9:07am

the solution i use is either with tosymbol or sprinf symout to have
correct quotes depdending on the presence of whitespace. this means
that you have to add the prefix to the message downstream.

see example below

hth
/*j

max v2;
#N vpatcher 10 59 1077 834;
#P origin -286 -706;
#P window setfont “Sans Serif” 9.;
#P message 400 299 340 196617;
#P window linecount 1;
#P newex 400 279 76 196617 prepend set;
#P user ubumenu 349 241 113 196617 0 1 1 0;
#X setrgb 31 31 31 188 255 157 234 234 234 4 4 4 141 141 141 112 112
112;
#X add;
#X prefix_set 0 1 0;
#X pattrmode 1;
#P objectname menu_window[1];
#P newex 349 144 31 196617 t 0 s;
#P newex 370 208 76 196617 prepend prefix;
#P newex 370 166 86 196617 sprintf %sstuff/;
#P newex 370 187 51 196617 tosymbol;
#P newex 112 196 76 196617 prepend prefix;
#P window linecount 0;
#P message 142 299 340 196617;
#P window linecount 1;
#P newex 142 279 76 196617 prepend set;
#P newex 91 152 31 196617 t 0 s;
#P newex 40 50 66 196617 loadbang;
#P message 40 70 29 196617 path;
#N thispatcher;
#Q end;
#P newobj 40 87 61 196617 thispatcher;
#P newex 112 174 122 196617 sprintf symout %sstuff/;
#P user ubumenu 91 241 113 196617 0 1 1 0;
#X setrgb 31 31 31 188 255 157 234 234 234 4 4 4 141 141 141 112 112
112;
#X add;
#X prefix_set 0 1
0;
#X pattrmode 1;
#P objectname menu_window;
#P connect 4 0 3 0;
#P connect 3 0 2 0;
#P connect 2 1 5 0;
#P connect 5 0 0 0;
#P connect 8 0 0 0;
#P connect 5 1 1 0;
#P connect 1 0 8 0;
#P connect 0 1 6 0;
#P connect 6 0 7 0;
#P connect 2 1 12 0;
#P connect 12 0 13 0;
#P connect 11 0 13 0;
#P connect 12 1 10 0;
#P connect 10 0 9 0;
#P connect 9 0 11 0;
#P connect 13 1 14 0;
#P connect 14 0 15 0;
#P pop;

#112081

You must be logged in to reply to this topic.