Mailing List AE-List@media-motion.tv — Message #42414
From: Dan Ebberts <debberts@comcast.net>
Subject: Re: [AE] Expression while loops
Date: Wed, 7 Mar 2012 15:48:20 -0800
To: After Effects Mail List <AE-List@media-motion.tv>
I think you need to introduce the element of time into your expression. The way it is now, it will run the entire loop each frame, so all you will see is the final value. timeToFrames(time) gives you the current frame, time gives you the current time (in seconds). It depends on what you’re trying to do.
 
Dan
 
Sent: Wednesday, March 07, 2012 3:39 PM
Subject: Re: [AE] Expression while loops
 
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
  mob:+31 6 1438 5398
 


 
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 <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://garyberendsen.com
VFX generalist


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

 
 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster