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

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&lt;=t1) {startVal
} else {
ease(time,t1,(t1+(t2-t1)),startVal,endVal)
}


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]