Mailing List AE-List@media-motion.tv ? Message #52752
From: Dan Ebberts <debberts@comcast.net>
Subject: Re: [AE] Source Text from external file
Date: Sat, 8 Feb 2014 15:32:04 -0800
To: After Effects Mail List <AE-List@media-motion.tv>
If all you have in the file is the text for the one text layer, I would think this would work:
 
myPath = "/C/temp/text_test.txt";
try{
$.evalFile (myPath);
}catch (err){
  "not found"
}
 
In the file you would have something like this:
 
"This is my text."     
 
(the straight quotes are necessary)
 
Dan
 
Sent: Saturday, February 08, 2014 3:16 PM
Subject: [AE] Source Text from external file
 
I'm sure I have done this in the past and I know I can do it with a script no problem but i would rather it be an expression.
 
There are plenty of examples on the web but they all seem to be populating comps using an eval(comp.name) piece of code.
 
I just want to have an expression on the source text of a layer that will read the file and put it into that layer.
 
Any ideas?
 
 
Thanks.
 
Phil
 
Phil Spitler  |  Creative Technologist   |  Bonfire Labs  |  t : 415.394.8200  m : 415.571.3139

Website | Facebook | LinkedIn


 
 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster