Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: ForumAE BasicsAE ExpressionsTutorialsArticlesPodcastsMotion GraphicsTrainingCinema 4D

what is the trick to get around the fact that expressions don't have memory?

Cow Forums : Adobe After Effects
what is the trick to get around the fact that expressions don't have memory?
by thor64 on Aug 13, 2006 at 9:50:09 pm

I think the subject is the issue in my problem...

I want a value to add another value to itself
like

myVar = myVar + 1;




Respond to this post   •   Return to posts index

Re: what is the trick to get around the fact that expressions don't have memory?
by Dan Ebberts on Aug 13, 2006 at 11:37:57 pm

Depends on what you're doing. A lot of times you can convert the expression to a equation based on time. Sometimes you have to have your expression "recreate" the past by walking through the comp frame by frame. The are other, more obscure techniques that can be helpful in rare situations.

If all you want to do is increment a value on each frame you could do it like this:

myVar = 10; //starting value
f = Math.round(time/thisComp.frameDuration); //frame number
myVar += f;

Dan

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]