Return-Path: Received: from mail-vw0-f41.google.com ([209.85.212.41] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 4648683 for AE-List@media-motion.tv; Thu, 08 Mar 2012 01:15:19 +0100 Received: by vbbey12 with SMTP id ey12so6338703vbb.28 for ; Wed, 07 Mar 2012 16:22:15 -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=zS6co4SI1rcnxvKjrK9amkAnLWgNyaljqB9qd/JJNQs=; b=XmDTy/qL+uQNLl8dCV8xLo1N7+guZqBRAyIjOFmkibNfQq7eg1DRZHj2xrdls9q2yr 5YG1xszptCH4yVGybUdPmFSml3Rkr3DZ6P4ffJUeHyzoHBqt1FjWfJdLuAKvgo/VZ0WX sRYG5+aKpk5ulBEs+2I5zA3jj3s4rabJVfZ7++tL6hAZH/IS7Ffocz9p5gDBjJpu9eJU ASyRRjTFSlji7lnFOCc/42+d3glUhQ8iohtkEE1z4VbPjK6Q7b7q0SNAcg+yojf9QN4l lzZzisP+dVq0955W1hlQdEjS8y2uL11FZ6pIbT+D6OxGNGNfmkN4A3v+60SFYgF5Ggak L5nQ== MIME-Version: 1.0 Received: by 10.52.28.178 with SMTP id c18mr6711343vdh.45.1331166135158; Wed, 07 Mar 2012 16:22:15 -0800 (PST) Received: by 10.220.32.207 with HTTP; Wed, 7 Mar 2012 16:22:14 -0800 (PST) In-Reply-To: References: Date: Wed, 7 Mar 2012 16:22:14 -0800 Message-ID: Subject: Re: [AE] Expression while loops From: Darby Edelen To: After Effects Mail List Content-Type: multipart/alternative; boundary=20cf307ac3f39f870404bab0446f --20cf307ac3f39f870404bab0446f Content-Type: text/plain; charset=ISO-8859-1 This would print a new number on each frame from 0 to frame 360: t = timeToFrames(time); if(t < 360) printf(t); As Dan already mentioned, an expression can be thought of as a function that is evaluated on every frame. The last value given in the expression is the value that the property will take. Only the last value of your loop will be returned unless you break out of the loop when you've reached the value you're looking for. -D On Wed, Mar 7, 2012 at 3:39 PM, Gary Berendsen wrote: > what i was trying to do to a property is: > > for ( x = 0; x < 360; x++ ) { > printf( "%d\n", x ); > } > > but instead of the printf in C this would change the value of the property. > > > *Gary Berendsen - VFX Generalist* > @DuintjerCS Kamer 10.09**** > Vijzelstraat 72 > 1017 HL Amsterdam > gary@garyberendsen.com > mob:+31 6 1438 5398**** > http://garyberendsen.com > > > > > On Mar 8, 2012, at 12:17 AM, Zack Lovatt wrote: > > Hey Gary! > > I wrote up a post on this a while back, included an AEP with it at the > bottom. Hopefully it's written understandably; if you have any questions, > comments and/or concerns don't hesitate to respond or contact me off-list > for clarification: > > http://zacklovatt.com/2012/02/for-while-loops/ > > Otherwise, it may help if you try to explain what you're looking to > accomplish; there may be an alternate method to it. > > Zack Lovatt > 416.786.4129 > www.zacklovatt.com > > > On Wed, Mar 7, 2012 at 1:08 PM, Gary Berendsen wrote: > >> How do you animate a while loop in AE? >> When I use it I just get the final return of the expression. >> >> Also another question how do you invert the exponential curve from >> math.exp so things start slower and go fster at the end? >> >> >> -- >> gary berendsen >> http://garyberendsen.com >> VFX generalist >> >> >> +---End of message---+ >> To unsubscribe send any message to >> > > > --20cf307ac3f39f870404bab0446f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable This would print a new number on each frame from 0 to frame 360:

t = =3D timeToFrames(time);
if(t < 360) printf(t);

As Dan already = mentioned, an expression can be thought of as a function that is evaluated = on every frame.=A0 The last value given in the expression is the value that= the property will take.=A0 Only the last value of your loop will be return= ed unless you break out of the loop when you've reached the value you&#= 39;re looking for.

-D

On Wed, Mar 7, 2012 at 3:39 PM, Ga= ry Berendsen <gary@garyberendsen.com> wrote:
what i was trying to do to a property i= s:

for ( x =3D 0; x < 360; x++ ) {
printf( = "%d\n", x );
=A0 =A0 }

but ins= tead of the printf in C this would change the value of the property.


Gary Berendsen - VFX Generalist
=A0 @DuintjerCS Kamer 10.09<= u>
=A0 Vijzelstraat 72
=A0 1017 HL Amsterdam




On Mar 8, 2012, at 12:17 AM, Zack Lo= vatt wrote:

Hey = Gary!

I wrote up a post on this a while back, included an AEP with i= t at the bottom. Hopefully it's written understandably; if you have any= questions, comments and/or concerns don't hesitate to respond or conta= ct me off-list for clarification:

http://zacklovatt.com/2012/02/for-while-loops/

Otherwise, = it may help if you try to explain what you're looking to accomplish; th= ere may be an alternate method to it.

Zack Lovatt
416.786.4129
www.zacklovatt.com


On Wed, Mar 7, 2= 012 at 1:08 PM, Gary Berendsen <gary@garyberendsen.com>= wrote:
How do you animate a while loop in AE?
When I use it I just get the final return of the expression.

Also another question how do you invert the exponential curve from math.exp= so things start slower and go fster at the end?


--
gary berendsen
http://garyberendse= n.com
VFX generalist


+---End of message---+
To unsubscribe send any message to <ae-list-off@media-motion.tv>



--20cf307ac3f39f870404bab0446f--