ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Importing Problem with expressions.

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
George Felix
Importing Problem with expressions.
on Jul 5, 2017 at 5:04:34 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";
}


Return to posts index

Dan Ebberts
Re: Importing Problem with expressions.
on Jul 5, 2017 at 7:11:54 pm

What's in the text file?

Dan



Return to posts index

George Felix
Re: Importing Problem with expressions.
on Jul 5, 2017 at 7:39:09 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"];


Return to posts index


George Felix
Re: Importing Problem with expressions.
on Jul 5, 2017 at 7:53:11 pm

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

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

in the script?


Return to posts index

Dan Ebberts
Re: Importing Problem with expressions.
on Jul 5, 2017 at 8:06:51 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



Return to posts index

Dan Ebberts
Re: Importing Problem with expressions.
on Jul 5, 2017 at 8:05:54 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



Return to posts index


George Felix
Re: Importing Problem with expressions.
on Jul 5, 2017 at 8:25:26 pm

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


Return to posts index

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