Forums > MaxMSP

opendialog, jit.cellblock and retrieving values (symbol to message question)

December 15, 2007 | 6:31 pm

i am storing various file locations in a jit.cellblock that get passed in with "opendialog" and "prepend set current" as shown in the jit.cellblock help.
my problem now is, when trying to get out the data and passing it to a jit.qt.movie object, i get the message jit.qt.movie: doesn’t understnad "symbol". is there a way to convert a symbol back to a message or to somehow store the data in jit.cellblock correctly? any other ideas?

thanks!
-parasew


December 15, 2007 | 7:01 pm

hallo mathias !
route symbol is useful here.
its fine the filepath IS a symbol, since when you once get spaces in
there it will
be needed as such.
but the header "symbol" should be eliminated here.
(even shorter: [substitute symbol read] instead of route and prepend )
best
klaus

On Dec 15, 2007, at 7:31 PM, Matthias Tarasiewicz wrote:

> i am storing various file locations in a jit.cellblock that get
> passed in with "opendialog" and "prepend set current" as shown in
> the jit.cellblock help.
> my problem now is, when trying to get out the data and passing it
> to a jit.qt.movie object, i get the message jit.qt.movie: doesn’t
> understnad "symbol". is there a way to convert a symbol back to a
> message or to somehow store the data in jit.cellblock correctly?
> any other ideas?
>
> thanks!
> -parasew
>


December 15, 2007 | 7:45 pm

Hey parasew,

I couldn’t open your patch, so I’m not sure how you are coming out of [jit.cellblock], but does this work for what you are trying to do?

max v2;
#N vpatcher 146 217 369 464;
#P window setfont "Sans Serif" 9.;
#P newex 64 132 63 196617 jit.qt.movie;
#P newex 64 104 68 196617 prepend read;
#P newex 8 75 66 196617 unpack 0 0 s;
#P user jit.cellblock 8 28 151 63 3 9 2 2 71 17 0 1 1 1 0 0 0 0 1 0 0 0 255 255 255 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 0 4 0 0 0;
#X set 0 0 filepath1.mov;
#X set 0 1 filepath3.mov;
#X set 1 0 filepath2.mov;
#X set 1 1 filepath4.mov;
#P connect 0 0 1 0;
#P connect 1 2 2 0;
#P connect 2 0 3 0;
#P pop;

Quote: parasew wrote on Sat, 15 December 2007 10:31
—————————————————-
> i am storing various file locations in a jit.cellblock that get passed in with "opendialog" and "prepend set current" as shown in the jit.cellblock help.
> my problem now is, when trying to get out the data and passing it to a jit.qt.movie object, i get the message jit.qt.movie: doesn’t understnad "symbol". is there a way to convert a symbol back to a message or to somehow store the data in jit.cellblock correctly? any other ideas?
>
> thanks!
> -parasew
—————————————————-


December 16, 2007 | 5:31 pm

hi klaus,
thanks for your reply.

both [substitute symbol read] and route symbol return the error jit.qt.movie: does not understand "Macintosh here. do you have a clue?


December 16, 2007 | 10:08 pm

#P button 231 80 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 232 177 113 196617 substitute symbol read;
#P newex 232 205 63 196617 jit.qt.movie;
#P newex 232 146 52 196617 r updatez;
#P message 231 123 85 196617 send updatez 0 0;
#P newex 93 205 99 196617 prepend set current;
#P button 93 106 15 0;
#P newex 93 178 52 196617 opendialog;
#P user jit.cellblock 93 248 441 401 3 9 1 3 274 17 0 1 1 1 1 1 1 0 5
0 0 0 255 255 255 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 0 0 0 0 0
0 0 0;
#X set 0 0 ac:/Users/klaus/Movies/cuttelelel.mov;
#X set 0 1 "Macintosh HD:/Applications/iCal.app";
#X set 0 2 "Macintosh HD:/Applications/Calculator.app";
#P window linecount 2;
#P comment 91 69 100 196617 first bang here and select an audio file;
#P window linecount 4;
#P comment 255 69 100 196617 second , bang here and see the error
output in the console window;
#P connect 4 0 3 0;
#P connect 3 0 5 0;
#P connect 5 0 2 0;
#P connect 6 0 2 0;
#P connect 10 0 6 0;
#P connect 7 0 9 0;
#P connect 9 0 8 0;
#P window clipboard copycount 11;

On Dec 16, 2007, at 6:31 PM, Matthias Tarasiewicz wrote:

>
> hi klaus,
> thanks for your reply.
>
> both [substitute symbol read] and route symbol return the error
> jit.qt.movie: does not understand "Macintosh here. do you have a clue?
>


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