loading images from folder
I want a separate folder for images but ‘read foldername/filename’ in a message doesn’t work
Do I need some fancy path?
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.
my patch is in a folder, my images are in a subfolder
how is runtime relevant?
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
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.
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
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)
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.
Got there in the end hey! :)