Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Linking to an external text file

  • Linking to an external text file

    Posted by Andy Bryce on April 19, 2017 at 3:00 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"
    }

    Dan Ebberts replied 9 years, 4 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    April 19, 2017 at 7:21 pm

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

    Dan

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