-
External text file that updates text in the composition
Hi,
I’m trying to create a text layer that will reference an external .txt file so that if I update the .txt file, the text within the animation will update. I’m wanting to do this to make it easier to update our mortgage rates. Is this possible? I’ve been trying to use expressions to do this but haven’t had any luck. My current expressions code is below. The text in my .txt file is var comp1 = [“30 YEAR”, “3.628%”];. I’m getting the not found error
myPath = "file://C:/Users/kjennings/Desktop/30yr.txt";
try{
$.evalFile ("file://C:/Users/kjennings/Desktop/30yr.txt");
eval("Comp 1");
}catch (err){
"not found"
}