ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Linking to an external text file

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Andy Bryce
Linking to an external text file
on Apr 19, 2017 at 3:00:54 pm

My text file says:

var comp1 = [“Digital working“, “Reading | Up to working“];
var comp2= [“working“, “Reading | Up to £35000“];


I have compositions called "comp 1" & "comp 2"
I have a text files called "0" and "1"

I copied the path from the mac information tab.

Both text layers are showing as "not found"

What am I doing wrong? please help

myPath = "/Users/AJBMedia/Desktop/sample.txt";
try{
$.evalFile (myPath);
eval(thisComp.name)[0];
}catch (err){
"not found"
}


Return to posts index

Dan Ebberts
Re: Linking to an external text file
on Apr 19, 2017 at 7:21:30 pm

For one thing, it looks like your text file has curly quotes instead of straight quotes, which will generate an error.

Dan



Return to posts index

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