I've searched on the archives for this but I'm really trying to make the issue of relative paths simpler for myself.
I have a very simple patch to get the absolute path of my main patch and then append sub-folders to it to open files. So far nothing exiting, there are plenty of examples to do this on the forum. My first problem with previous posted solutions is that there are several objects involved in doing this and I'm constantly loading external files from all over my patch. So I would have to move (or copy around) a group of objects just to feed files to my objects that need it. My ideal solution of course would be to just use the "message" object and simply write "open /mysubfolder/myfile.myext". Since that is not possible my current solution is to have the following:
message object---"open subfolder/subfolder/myfile.myext
sfolder---------- My patch that deals with the details
My object that needs a file from a subfolder.
This works to a certain extent, but If I try to use "sfolder" as an abstraction it breaks, as the "thispatcher" object will report the absolute path of the original patch (somewhere in the C74 folder) and not the path of the patch that is loading the abstraction. Also if I try to put the contents of "sfolder" in a sub-patch the "thispatcher" objects seems to get lost and reports "/" as it's location.
Is it possible to use "thispatcher" inside of an abstraction the way I am trying to do?
At the moment what I have to do is manually copy the "sfolder" patch to the root folder of every project next to the main patch. Should I call it a day and just keep doing it that way?
The patches need to be saved to the same folder, in this case it is looking for a file called "01.wav" on a subfolder called "snd"
Thanks in advance