• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Aug 19, 2017 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.

Views

1.6K

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
community guidelines

correct answers 1 Correct answer

Advisor , Aug 21, 2017 Aug 21, 2017

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.

Votes

Translate

Translate
Community Expert ,
Aug 20, 2017 Aug 20, 2017

Copy link to clipboard

Copied

Hello,

Did you try the absolute path?

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

Votes

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
community guidelines
Advisor ,
Aug 21, 2017 Aug 21, 2017

Copy link to clipboard

Copied

LATEST

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.

Votes

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
community guidelines