After Effects Expression Help!

Join Discord

DiabloVodkaShot

LOMCN VIP
VIP
Feb 20, 2009
2,272
182
265
I get the following error message:

After effects warning: File or folder does not exist Expression Disabled

error occurred at line 8
comp: scene1
layer 2 (main text)
property source text

Here is my code the idea is it loads an external file with code in it

if ($.os.indexOf("Mac")!= -1)
filePath = "~/Desktop/Dynamic\ Text/FinalEnd\Result/";
else
filePath = "file:///c:////Dynamic";

filePath += "test.txt";

$.evalFile(filePath); << Line 8 ?
eval(thisComp.name)[0];