Highlighted

What is the correct syntax for file path names in layer property expressions?

New Here ,
Aug 19, 2017

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.

Views

611

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

What is the correct syntax for file path names in layer property expressions?

New Here ,
Aug 19, 2017

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.

Views

612

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 19, 2017 0
Adobe Community Professional ,
Aug 20, 2017

Copy link to clipboard

Copied

Hello,

Did you try the absolute path?

C:\Users\Dave\Desktop\RealEstate\roomnames.txt

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 20, 2017 2
Advisor ,
Aug 21, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 21, 2017 0