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

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

New Here ,
Aug 19, 2017 Aug 19, 2017

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.

1.9K
Translate
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.

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

Hello,

Did you try the absolute path?

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

Translate
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
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.

Translate
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