Return-Path: Received: from mail-pa0-f49.google.com ([209.85.220.49] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5371249 for AE-List@media-motion.tv; Sun, 09 Feb 2014 01:49:58 +0100 Received: by mail-pa0-f49.google.com with SMTP id hz1so4695284pad.36 for ; Sat, 08 Feb 2014 16:54:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:content-transfer-encoding :mime-version:subject:message-id:date:references:in-reply-to:to; bh=n8uaVx9rOSrJvZ2koLS329IOC5dFKnyeeIxlsSKMMv4=; b=J6Y586z2gPDeIW/y1HcJT+OwXYXvycmI/UzgmlLLpS5SVfO1j2ebvHNpBPRDvvMV1T AgoVldcGiKhUOAfLxqbQPWeKFWkdlY+9dqokkJ8GBenMa1+bCqVdJZLDde6SQzT7PniX He/qCzBYPfnXDXKLGZB29TFwpVLIGnJU6gBFQhn2KXQbL4bkFVEKB9O4mc3Sq+mA8AfM WeYKlFu3VxKc86JoXum7ZKldoLddrHo9w8y0ne+GABbagsGocBt45Sa58dTQQGvQ+H5B zljUwJlB6I6+TJQhymX3IOO3v+qA8khwZT1OjH6+kca23AAAIms4WUk1jQUkoP4VRKp0 JJ9g== X-Gm-Message-State: ALoCoQmm9V7Y9YRNjRUZuGps/HlioVoAbntPzhHVDpXyOnuOJH8sDLOpVHYszHIIOCVaOlEC7FPb X-Received: by 10.66.27.13 with SMTP id p13mr16717989pag.76.1391907275043; Sat, 08 Feb 2014 16:54:35 -0800 (PST) Return-Path: Received: from ?IPv6:2601:9:7bc0:18:690c:8a6e:3489:9ab9? ([2601:9:7bc0:18:690c:8a6e:3489:9ab9]) by mx.google.com with ESMTPSA id n6sm27604167pbj.22.2014.02.08.16.54.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 08 Feb 2014 16:54:34 -0800 (PST) From: Phil Spitler Content-Type: multipart/alternative; boundary=Apple-Mail-BA254CAD-259A-4479-86D8-3E5C0D68D449 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Subject: Re: [AE] Source Text from external file Message-Id: Date: Sat, 8 Feb 2014 16:54:32 -0800 References: In-Reply-To: To: After Effects Mail List X-Mailer: iPhone Mail (11B554a) --Apple-Mail-BA254CAD-259A-4479-86D8-3E5C0D68D449 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ahhhh. That's my problem.=20 The text is just a list of names.=20 I'll use a script instead to populate the text layers.=20 Thanks.=20 Phil Phil Spitler | Creative Technologist | Bonfire Labs | t : 415.394.820= 0 m : 415.571.3139 Website | Facebook | LinkedIn > On Feb 8, 2014, at 4:40 PM, "Dan Ebberts" wrote: >=20 > What is in your text file? > =20 > It has to be formatted as a valid JavaScript text string. > =20 > If it=E2=80=99s more than one line, it would be like this: > =20 > "Line 1 text\r" + > "Line 2 text\r"; > =20 > Dan > =20 > From: Phil Spitler > Sent: Saturday, February 08, 2014 4:02 PM > To: After Effects Mail List > Subject: Re: [AE] Source Text from external file > =20 > Thanks guys. > =20 > Dan, I ge the "not found" when using your method. I changed the path to th= e location of my file. > =20 > myPath =3D "~/Desktop/names.txt"; > try{ > $.evalFile (myPath); > }catch (err){ > "not found" > } > =20 > =20 > David, I was looking at you examples earlier and they are looking to modif= y the layer based on the comp name found in the text doc. > =20 > I really just want to dump the contents into my text layer. > =20 > Phil > =20 > =20 > =20 > =20 > =20 > =20 > =20 > Phil Spitler | Creative Technologist | Bonfire Labs | t : 415.394.8= 200 m : 415.571.3139 >=20 > Website | Facebook | LinkedIn >=20 > =20 > =20 >> On Feb 8, 2014, at 3:41 PM, David Torno wrote: >>=20 >> I did a video tutorial on this awhile back as well. >> =20 >> http://provideocoalition.com/pvcexclusive/story/expression_shorts_-_read_= external_text_document >>=20 >> David Torno >> Technical Director >> http://www.ghosttownmedia.com >> O: 213.739.2290 >> C: 818.391.6060 >> -------------------- >> http://aeioweyou.blogspot.com >>=20 >> "The most useless day is that in which we do not laugh" >> -Charles Field >>=20 >>> On Feb 8, 2014, at 3:16 PM, Phil Spitler wrote: >>>=20 >>> I'm sure I have done this in the past and I know I can do it with a scri= pt no problem but i would rather it be an expression. >>> =20 >>> There are plenty of examples on the web but they all seem to be populati= ng comps using an eval(comp.name) piece of code. >>> =20 >>> I just want to have an expression on the source text of a layer that wil= l read the file and put it into that layer. >>> =20 >>> Any ideas? >>> =20 >>> =20 >>> Thanks. >>> =20 >>> Phil >>> =20 >>> Phil Spitler | Creative Technologist | Bonfire Labs | t : 415.394= .8200 m : 415.571.3139 >>>=20 >>> Website | Facebook | LinkedIn >=20 > =20 --Apple-Mail-BA254CAD-259A-4479-86D8-3E5C0D68D449 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Ahhhh. That's my problem. 
<= div>
The text is just a list of names. 

I'll use a script instead to populate the text layers. 

Thanks. 

Phil

=
Phil Spitl= er  |  Creative Technol= ogist   |  Bonfire= Labs  |  t : 415.394.= 8200  m : 415.571.3139


On Feb 8, 2014, at 4:40 PM, "Dan Ebber= ts" <debberts@comcast.net>= wrote:

What is in your text file?
 
It has to be formatted as a valid JavaScript text string.
 
If it=E2=80=99s more than one line, it would be like this:
 
"Line 1 text\r" +
"Line 2 text\r";
 
Dan
 
Sent: Saturday, February 08, 2014 4:02 PM
Subject: Re: [AE] Source Text from external file
 
Thanks=20 guys.=20
 
Dan, I ge the "not found" when using your method. I changed the path to= the=20 location of my file.
 
myPath =3D "~/Desktop/names.txt";
try{
$.evalFile (myPath);<= /div>
}catch (err){
  "not found"
}
 
 
David, I was looking a= t you=20 examples earlier and they are looking to modify the layer based on the comp n= ame=20 found in the text doc.
 
I really just want to= dump=20 the contents into my text layer.
 
Phil
 
 
 
 
 
 
 
Phil Spitler  | =20 Creative Technologist   |  Bonfire Labs  |  t= :=20 415.394.8200  m : 415.571.3139

Website | Facebook | LinkedIn

 
 
On Feb 8, 2014, at 3:41 PM, David Torno wrote:

I did a video tutorial on th= is=20 awhile back as well.
 
http://provideocoalition.com/pvcexclusive/story/expression_shorts_= -_read_external_text_document

David Torno=20
Technical Director
O: 213.739.2290
C: 818.391.6060
--------------------

"The=20 most useless day is that in which we do not laugh"
-Charles Field

On Feb 8, 2014, at 3:16 P= M,=20 Phil Spitler <phil@bonfirelabs.= com>=20 wrote:

I'm sure I have done this in the past and I know I can do it with a= =20 script no problem but i would rather it be an expression.=20
 
There are plenty of examples on the web but they all seem to be=20 populating comps using an eval(comp.name) piece of code.
 
I just want to have an expression on the source text of a layer tha= t=20 will read the file and put it into that layer.
 
Any ideas?
 
 
Thanks.
 
Phil
 
Phil Spitler  | =20 Creative Technologist   |  Bonfire Labs  |&nb= sp;=20 t : 415.394.8200  m : 415.571.3139

Website | Facebook |= LinkedIn


 
 
= --Apple-Mail-BA254CAD-259A-4479-86D8-3E5C0D68D449--