Set global variable for file path

mrming's icon

Hi all,

I'm new to Max/MSP but an experienced programmer in other languages such as ActionScript 3.0 and PHP.

I'm trying to set a global variable for a file path which I can then refer to when loading video files with jit.qt.movie.

I've managed to use to send and receive to set a variable and retrieve it, but I can't figure out how to concatenate the file path when loading the video file.

What I'd like to be able to do is add the global path to the filename for the individual video I'm trying to load.

Can anyone advise what I should be doing?

pdelges's icon

To concatenate, use [combine] or [sprintf] (don't forget to check its symout argument).
If you really need a gloabal variable (not sure once you checked both objects help files and reference), you may try [v].

mrming's icon

value and combine did the trick - thank you!