Return-Path: Received: from qmta06.emeryville.ca.mail.comcast.net ([76.96.30.56] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 5371235 for ae-list@media-motion.tv; Sun, 09 Feb 2014 01:37:58 +0100 Received: from omta06.emeryville.ca.mail.comcast.net ([76.96.30.51]) by qmta06.emeryville.ca.mail.comcast.net with comcast id Q0g21n00216AWCUA60ibKp; Sun, 09 Feb 2014 00:42:35 +0000 Received: from HPZ200 ([24.10.59.135]) by omta06.emeryville.ca.mail.comcast.net with comcast id Q0ga1n00h2v3gNo8S0gbN3; Sun, 09 Feb 2014 00:40:35 +0000 Message-ID: <67690974FC224BC1B66F1C87EA60D5A3@HPZ200> From: "Dan Ebberts" To: "After Effects Mail List" References: In-Reply-To: Subject: Re: [AE] Source Text from external file Date: Sat, 8 Feb 2014 16:40:36 -0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_005E_01CF24EC.7E8FF880" X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1391906555; bh=MvgkXm6SbXGH3ciwm5QUbfiMdg0Hamoy52sJgXjg1p8=; h=Received:Received:Message-ID:From:To:Subject:Date:MIME-Version: Content-Type; b=MFv8HoKJQhvrwEfGO5ea1nNVYVCrgAVz5icm/rsbFxzZtdqxOyBzMv+HFeR0SOgR2 qKWN53c6jsaet3pGyX2qm1INZNcA8N/1UxuXdX22+hdFIKJ+o4SL3nTqUKbVdqwtQI Rfor1xLQhTmvzBmnIRajAOuSE30cLvM75/j3JCHLyHuGcLMR6UawFfCQVnQl+wPov0 CkXU9DSI7nZI+x93Fv0I6Lt+HUIsqU02eIjn2i/g596Zjoehv28RsvSaM0PAhwfOID /CPSzuQuqUAVqRGoaV7NKhpQ+8TaU/BU9YbKAp++P9WSihNccKRFO8+4KVhthG8FBs AAH3Yan6ZZb9g== This is a multi-part message in MIME format. ------=_NextPart_000_005E_01CF24EC.7E8FF880 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 From: Phil Spitler=20 Sent: Saturday, February 08, 2014 4:02 PM To: After Effects Mail List=20 Subject: Re: [AE] Source Text from external file Thanks guys.=20 Dan, I ge the "not found" when using your method. I changed the path to = the location of my file. myPath =3D "~/Desktop/names.txt"; try{ $.evalFile (myPath); }catch (err){ "not found" } David, I was looking at you examples earlier and they are looking to = modify the layer based on the comp name found in the text doc. I really just want to dump the contents into my text layer. Phil Phil Spitler | Creative Technologist | Bonfire Labs | t : = 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 this awhile back as well. = http://provideocoalition.com/pvcexclusive/story/expression_shorts_-_read_= external_text_document David Torno=20 Technical Director http://www.ghosttownmedia.com O: 213.739.2290 C: 818.391.6060 -------------------- http://aeioweyou.blogspot.com "The most useless day is that in which we do not laugh" -Charles Field On Feb 8, 2014, at 3:16 PM, Phil Spitler wrote: 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.=20 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 ------=_NextPart_000_005E_01CF24EC.7E8FF880 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
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);
}catch = (err){
  "not = found"
}
 
 
David, I was = looking at you=20 examples earlier and they are looking to modify the layer based on the = comp name=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 this=20 awhile back as well.
 
http://provideocoalition.com/pvcexclusive= /story/expression_shorts_-_read_external_text_document

= David Torno=20
Technical Director
http://www.ghosttownmedia.com=
O: 213.739.2290
C: 818.391.6060
--------------------
http://aeioweyou.blogspot.com=

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

On Feb 8, 2014, at = 3:16 PM,=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 = 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=20 will read the file and put it into that layer.
 
Any ideas?
 
 
Thanks.
 
Phil
 
Phil = Spitler  | =20 Creative Technologist   |  Bonfire Labs  = | =20 t : 415.394.8200  m : 415.571.3139

Website | Facebook | LinkedIn

 
 
------=_NextPart_000_005E_01CF24EC.7E8FF880--