Return-Path: Received: from mail-la0-f49.google.com ([209.85.215.49] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5371288 for AE-List@media-motion.tv; Sun, 09 Feb 2014 04:56:57 +0100 Received: by mail-la0-f49.google.com with SMTP id y1so3760680lam.22 for ; Sat, 08 Feb 2014 20:01:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Q60hTgPDf2ub9QxN7nbbjYDCqxj8reUNG13S+ZP/SI0=; b=p4g9RVYNp+jrFa471md7ccYmACQqLdBqyaUK7zDTfhvyJ4uynXHrJf2p/e3QsdYkqQ z70dE2+M6w+LeLv7xNMeWqJJEc4c4mZNww9Fp52A1HXTe20xx8Czf9mRWZzDc8w/AsTM 9UvQKAB7xPo1/VntYj2xOaYOIk1C9w0NGTfVcYDhoAIOii+k4XOqdVL8vwBRGmVx+Z0D JvIcgM6MiMRrsfTr69R3gxI5Duv2j1S94Ir6+pVzNY2WBsDC2Nmgq/YGEIqnPx7qFyQG moGS8/KpS0Rn3Dny8zLkCqx97XDaa364ViQ/CjI6W3jKlhodYeaidHOUEqyr/Af973Cq GMHQ== MIME-Version: 1.0 X-Received: by 10.152.27.100 with SMTP id s4mr16615087lag.18.1391918495019; Sat, 08 Feb 2014 20:01:35 -0800 (PST) Received: by 10.114.182.193 with HTTP; Sat, 8 Feb 2014 20:01:34 -0800 (PST) In-Reply-To: References: Date: Sat, 8 Feb 2014 23:01:34 -0500 Message-ID: Subject: Re: [AE] Source Text from external file From: Daniel Griffin To: After Effects Mail List Content-Type: multipart/alternative; boundary=089e0160b88e73b83f04f1f147bb --089e0160b88e73b83f04f1f147bb Content-Type: text/plain; charset=ISO-8859-1 This should do what you need: http://aescripts.com/compsfromspreadsheet/ Works very nice. Daniel Griffin www.kubikafilms.com 2014-02-08 19:54 GMT-05:00 Phil Spitler : > Ahhhh. That's my problem. > > The text is just a list of names. > > I'll use a script instead to populate the text layers. > > Thanks. > > Phil > > > *Phil Spitler* | Creative Technologist | *Bonfire Labs* | t : > 415.394.8200 m : 415.571.3139 > > Website | Facebook > | LinkedIn > > On Feb 8, 2014, at 4:40 PM, "Dan Ebberts" wrote: > > What is in your text file? > > It has to be formatted as a valid JavaScript text string. > > If it's more than one line, it would be like this: > > "Line 1 text\r" + > "Line 2 text\r"; > > Dan > > *From:* Phil Spitler > *Sent:* Saturday, February 08, 2014 4:02 PM > *To:* After Effects Mail List > *Subject:* Re: [AE] Source Text from external file > > Thanks guys. > > Dan, I ge the "not found" when using your method. I changed the path to > the location of my file. > > myPath = "~/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 > 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. > > 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 > > > > > > > --089e0160b88e73b83f04f1f147bb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
This should do what you need:

Works very nice.
=

Daniel Griffin
www.kubikafilms.com


2014-02-08 19:54 GMT-05:00 Phil Spitler = <phil@bonfirelabs.com>:
Ahhhh. That's my problem. 

The text is just a list of names. 

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

Thanks. 

Phil

Phil Spitler=   |  Creative Technologist   |  <= b>Bonfire Labs  |  t : 415.394.8200  m : 415.5= 71.3139


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

What is in your text file?
 
It has to be formatted as a valid JavaScript text string.
 
If it’s 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 &quo= t;~/Desktop/names.txt&quo= t;;
try{
$.evalFile (myP= ath);
}catch (err){
  "no= t found"
}
 
 
David, I was lo= oking 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 w= ant 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

<= a style=3D"TEXT-DECORATION:none;COLOR:rgb(83,98,105)" href=3D"http://bonfir= elabs.com/" target=3D"_blank">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://prov= ideocoalition.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 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 w= ith 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 th= at=20 will read the file and put it into that layer.
 
Any ideas?
 
 
Thanks.
 
Phil
 
Phil Spitler  | =20 Creative Technologist   |  Bonfire Labs  |&n= bsp;=20 t : 415.394.8200  m : 415.571.3139

Website | Facebook | LinkedIn


 
 

--089e0160b88e73b83f04f1f147bb--