Copy link to clipboard
Copied
After Effects CC 2017 on Windows 10
I am trying to to a simple variable import from an external text file to populate a text layer with this basic expression in the "Source Text" field:
$.evalFile("\Users\Dave\Desktop\RealEstate\roomnames.txt");
text1
I get a "File not found" error.
If I use forward slashes, I get a "Syntax" Error.
This seems like it should be simple but I have spent hours looking for a solution and can not find anything that works.
Try this:
myPath = "C:/Users/Dave/Desktop/RealEstate/roomnames.txt";
$.evalFile(myPath)
Note: the text in your text file needs to be wrapped in quotation marks.
Copy link to clipboard
Copied
Hello,
Did you try the absolute path?
C:\Users\Dave\Desktop\RealEstate\roomnames.txt
Copy link to clipboard
Copied
Try this:
myPath = "C:/Users/Dave/Desktop/RealEstate/roomnames.txt";
$.evalFile(myPath)
Note: the text in your text file needs to be wrapped in quotation marks.