Return-Path: Received: from mail-pa0-f42.google.com ([209.85.220.42] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5371206 for AE-List@media-motion.tv; Sun, 09 Feb 2014 00:57:42 +0100 Received: by mail-pa0-f42.google.com with SMTP id kl14so4688181pab.15 for ; Sat, 08 Feb 2014 16:02:18 -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:mime-version:content-type:subject:date :in-reply-to:to:references:message-id; bh=GfsFGoWXIKMrbJkQGCBysgtcZWDJloROf4ulUR5pzmM=; b=C1MP/agja9UbsN8AC3qpv1EidabsIp7/IaaJckkt3gpO3TPJAlpZ2OZOkV+Hah7AvP y2IVRtOaAW66ZzExSLR75jojZknlHAUspOpPtO7otGVk/mT8OaLjvh0C/mMXXxrvInGb 7MhdFdKxAjQOTf8eLCb46vNYhkyKWNK9+9nrnaHjQ6melJ5oiH0BD1Srx4JLDx0J4IAw xG4KeGhgSCa0O3sEBYhN+c1ynGQFYv79FsUUI2DF+U9TlXZcy+tkOwGJpNYxphgmqCmF cigjZuC8rpSyCNS1J1dCGiFG3W7lY/Pwm3NoIVy1GKcEC4VgPsuSNcGSLz4wr9/ZYOMR Vfgg== X-Gm-Message-State: ALoCoQnEzrnABA121B5oQ9VkZjqIE/xM+Xcl5VnDPn2izP4H1+F7Q4XyjoHMBbm0ZFChsEm00T4+ X-Received: by 10.66.156.137 with SMTP id we9mr16945159pab.30.1391904138475; Sat, 08 Feb 2014 16:02:18 -0800 (PST) Return-Path: Received: from ?IPv6:2601:9:7bc0:18:4062:3059:4a12:c003? ([2601:9:7bc0:18:4062:3059:4a12:c003]) by mx.google.com with ESMTPSA id bz4sm27379775pbb.12.2014.02.08.16.02.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 08 Feb 2014 16:02:14 -0800 (PST) From: Phil Spitler Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: multipart/alternative; boundary="Apple-Mail=_060FD048-9ABE-4C7B-9959-B4A17FFFF2FE" Subject: Re: [AE] Source Text from external file Date: Sat, 8 Feb 2014 16:02:12 -0800 In-Reply-To: To: "After Effects Mail List" References: Message-Id: X-Mailer: Apple Mail (2.1283) --Apple-Mail=_060FD048-9ABE-4C7B-9959-B4A17FFFF2FE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Thanks guys. 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. >=20 > = http://provideocoalition.com/pvcexclusive/story/expression_shorts_-_read_e= xternal_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 = 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. >>=20 >> 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. >>=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 >>=20 --Apple-Mail=_060FD048-9ABE-4C7B-9959-B4A17FFFF2FE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

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 | 
=


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/s= tory/expression_shorts_-_read_external_text_document

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

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

On Feb 8, 2014, at 3:16 = PM, Phil Spitler <phil@bonfirelabs.com> = 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 | 
=

=

= --Apple-Mail=_060FD048-9ABE-4C7B-9959-B4A17FFFF2FE--