Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Freezing Time Remap value when < X position

  • Dan Ebberts

    January 21, 2011 at 7:07 pm

    It will probably look like this:


    W = thisComp.layer("White Line");
    v = value;
    for (f = 0; f <= timeToFrames(); f++){
    t = framesToTime(f)
    if (transform.position.valueAtTime(t)[0] <= W.transform.position[0]){
    v = valueAtTime(t);
    break;
    }
    }
    v

    Dan

  • Jon Bennett

    January 21, 2011 at 7:13 pm

    That’s amazing, Dan, works right off the bat: also gives me a new platform to learn from by dissecting this example code. Many, many thanks.

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