Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Is it possible to use the current value of an expression

  • Is it possible to use the current value of an expression

    Posted by Andy Bay on November 16, 2009 at 1:35 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?

    Ryan Hill replied 16 years, 8 months ago 3 Members · 2 Replies
  • 2 Replies
  • Xinlai Ni

    November 16, 2009 at 2:25 am

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

    Xinlai Ni
    Software Engineer, Google Inc.

  • Ryan Hill

    November 16, 2009 at 7:46 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:
    https://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.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy