Forums > MaxMSP

loading images from folder

Aug 23 2010 | 3:10 pm

using fpic

I want a separate folder for images but ‘read foldername/filename’ in a message doesn’t work

Do I need some fancy path?

Aug 23 2010 | 3:53 pm

not fancy, but hopefully you are already in the searchpath of the runtime?

the searchpath will however make it far easier because you do not need
to name the full path but only the filename.


Aug 23 2010 | 4:26 pm

my patch is in a folder, my images are in a subfolder

how is runtime relevant?

Aug 23 2010 | 6:30 pm

the searchpath is something which is usually relative to the runtime,
simply because all other paths are different on different computers.

so it is recommended to use only searchpaths inside the max folder
for programing max.
the same is true for C++ or html – never have pictures or code on your
mac dekstop or in /user/mycoolstuff/ as this will brake when moving to
another computer.



when a picture file for [fpic] is in :patches: or in :externals: you do not
have to provide the path at all, the picture file will be found just by its name.
but there is a caveat: you must make sure to always use unique filenames.

Aug 23 2010 | 9:35 pm

Reading your posts is akin to stabbing oneself in the eye with a fork. I don’t know whether it is some backwards Rundfunk way of explaining things but every time and without fail, you seem give the least straightforward answer.

I’ll just put all the images in my working folder then yeah? Safe

Aug 24 2010 | 12:13 am

i cant answer this, because i dont know what a "working folder" is.

"read foldername/filename" sounds wrong however, the read message will not work with paths.

and paths in max would read


or in the case of beeing inside the maxmsp serach path


personally i use drag and drop to read up files into fpic, but "read filename" will also work as
long as "file" is somewhere in the search path.

-110 (straightforward backwards rundfunker)

Aug 24 2010 | 1:41 am

The read message in fpic works with paths. If your path has spaces in it, use quotes. You can drop your file on the dropfile object to see what your path is.

Aug 24 2010 | 9:39 am

Got there in the end hey! :)


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

Forums > MaxMSP