Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions What is the correct syntax for file path names in expressions?

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

    Posted by Dave Morales on August 20, 2017 at 12:02 am

    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.

    $.evalFile("\Users\Dave\Desktop\RealEstate\roomnames.txt");
    text1

    Andrei Popa replied 8 years, 8 months ago 2 Members · 1 Reply
  • 1 Reply
  • Andrei Popa

    August 29, 2017 at 6:50 am

    The correct path would be
    $.evalFile("/Users/Dave/Desktop/RealEstate/roomnames.txt");

    Andrei

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy