-
.txt files and relative paths: this might be a step towards a solution
Hello again.
I’ve been looking around and it seems like it is not possible to use a relative path to point to a file when using expressions. Today though I got this to work:
try{
myPath = "../Grafiche/ePriceData.txt";
$.evalFile(myPath);
eval(thisComp.name)[index - 1];
}catch(err){
err;
}This allows the expression to go one step up the hierarchy relative to the project’s folder, then enter the folder Grafiche and find the txt file.
Too bad that the project file and txt file are in the same folder and having to go through this extra step defeats the whole purpose of using the relative path. I’m posting this so that it might turn on the proverbial light bulb in someone else’s mind and lead us to a solution.On a side note, I am working on windows but I have to use “/” instead of “\” in the path to make everything work. Curious.
Cheers