ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Is it possible to use the current value of an expression

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
andy bayIs it possible to use the current value of an expression
by on Nov 16, 2009 at 1:35:07 am

Hi!

Is it possible to get the current value that the expression has produced so far and refer to it with expressions?

For example I would like to create an if/else statement that would tell x-position to increase only until it's value is 100 and stop after that. How would I tell AE to use the x-position value that the expression is producing?



Return to posts index

Xinlai NiRe: Is it possible to use the current value of an expression
by on Nov 16, 2009 at 2:25:57 am

Whether using expression or not, position[0] always tells you the x position.

Xinlai Ni
Software Engineer, Google Inc.


Return to posts index

Ryan HillRe: Is it possible to use the current value of an expression
by on Nov 16, 2009 at 7:46:37 pm

Based on your example, you're not asking for the current value, but the previous value, in the sense of the value that this same expression generated at a different time, so you can make a cumulative effect.

My understanding is that AE doesn't like to derive a property from itself on the basis that it could lead to circular reasoning.

Here's a similar problem where someone created a While loop to sum all the values from the start to the current time:
http://forums.creativecow.net/thread/227/10015

It isn't referencing the result of its own expression, but another expression, but the results are similar to what you want.



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]