ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

value of another property as a point to stop the animation

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Maria Ciszynska
value of another property as a point to stop the animation
on Jan 4, 2018 at 12:27:48 pm


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];
if (time&lt;=t1) {startVal
} else {

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 All Rights Reserved