Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions value of another property as a point to stop the animation

  • value of another property as a point to stop the animation

    Posted by Maria Ciszynska on January 4, 2018 at 12:27 pm

    Hello,

    I have a question regarding property value going from 0-100% to be used as a duration of animation in another layer. (I am usually just a typical ‘wiggle’ user, so sorry if I’m being daft).

    I have a text with just one keyframe and an expression for range selector to unveil the text so that the duration of typewriter is relative to the length of the text. I also have a small shape moving in front as the letters appear, doing a little overshoot (which is sorted) and ending position at the end of text layer.

    I would like to link the shape to the text so that when range selector reaches 100%, the shape reaches it’s final position but can’t find a way to make it work. Found something about valueAtTime, which I though might be the answer (though timeAtValue is more what I would need), but it just jumps right to the end one frame after it starts with the expression below. Is there any way to do it?

    Any help greatly appreciated!

    r=thisComp.layer("TEXT").text.animator("Animator 1").selector("Range Selector 1").start;
    startVal=thisComp.layer("START OF TEXT").transform.position[0];
    endVal=1514;
    t1=thisComp.layer("SHAPE").transform.xPosition.key(1).time;
    t2=(r.valueAtTime==100);
    if (time<=t1) {startVal
    } else {
    ease(time,t1,(t1+(t2-t1)),startVal,endVal)
    }

    Maria Ciszynska replied 8 years, 8 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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