Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Importing Problem with expressions.

  • Importing Problem with expressions.

    Posted by George Felix on July 5, 2017 at 5:04 pm

    I got a real strange problem.

    Operating System Windows 10

    I am able to import text files that have a .prn ending but I am unable to import the same text file when it has an .txt ending

    Any suggestions? Is this a bug for Windows 10

    The source.txt were created with notepad

    DOES NOT WORK
    try{
    $.evalFile(C:\Users\George\Desktop\<b>source.txt</b>);
    teamHome;
    }catch(err){
    "MISSING";
    }

    WORKS

    try{
    $.evalFile(C:\Users\George\Desktop\<b>Data.prn</b>);
    teamHome;
    }catch(err){
    "MISSING";
    }

    George Felix replied 9 years, 1 month ago 2 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    July 5, 2017 at 7:11 pm

    What’s in the text file?

    Dan

  • George Felix

    July 5, 2017 at 7:39 pm

    Variable to be imported for soccer graphics. Below is the variables which their are about 125 different ones.

    The same file gets imported if the extension is a “.prn” instead of a “.txt”

    var TeamH = ["test1","test1","test1"];
    var GoalieH = ["test1","test1","test1"];
    var RbackH = ["test1","test1","test1"];
    var CRbackH = ["test1","test1","test1"];
    var CLbackH = ["test1","test1","test1"];
    var LbackH = ["test1","test1","test1"];

  • George Felix

    July 5, 2017 at 7:53 pm

    An other question, would it be possible to link the data file on a web server and have a path like

    https://www.inkarpathos.gr/program/user1/data.txt

    in the script?

  • Dan Ebberts

    July 5, 2017 at 8:05 pm

    So you’re saying if you take the exact same file that works as a .prn and change its extentsion to .txt (and make the same change in the expression’s path), it doesn’t work? That surprises me.

    Dan

  • Dan Ebberts

    July 5, 2017 at 8:06 pm

    >would it be possible to link the data file on a web server

    I believe you could do that with a script, but not an expression.

    Dan

  • George Felix

    July 5, 2017 at 8:25 pm

    Yes, the same file, just change the extension from “.prn” to “.txt” but it does not work.

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