Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Can’t reference self position with valueAtTime

  • Can’t reference self position with valueAtTime

  • tom ono

    May 19, 2020 at 4:22 pm

    I thought position[0] would be 200(time>=2)but wouldn’t.
    Position[0] is 1234.2
    why?
    thanks

    if(time<2){
    x=time*200;
    [x,value[1]];
    }else {
    transform.position.valueAtTime(1);
    }

  • Dan Ebberts

    May 19, 2020 at 5:55 pm

    When an expression references the value of the property hosting the expression, it always get the pre-expression value. Expressions have no memory, so an expression can’t access its own results from previous frames. There are usually ways to work around that limitation though, depending on what you’re trying to do.

    Dan

  • tom ono

    May 20, 2020 at 11:45 am

    I was able to work around that limitation by just using the copy layer .
    Thank you so much.

Viewing 1 - 3 of 3 posts

Log in to reply.

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