ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

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

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Dave Morales
What is the correct syntax for file path names in expressions?
on Aug 20, 2017 at 12:02:07 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


Return to posts index

Andrei Popa
Re: What is the correct syntax for file path names in expressions?
on Aug 29, 2017 at 6:50:18 am

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

Andrei


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]