FORUMS: list search recent posts

Using Position of another layer to start fade in effect

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
David Mathis
Using Position of another layer to start fade in effect
on Nov 23, 2013 at 7:56:11 pm

I would like for a bar to move in from left to right. When the bar reaches say a value of 960 for the x position I would like for the text to fade in. In other words I want only to keyframe the position of the lower third bar and not have to adjust keyframes for the opacity of text. There will be a "?" below in the expression somewhere. This indicates the area I am difficulty with.

Would also like to create one so when the bar goes down the text will fade out.

x = thisComp.layer("Lower Third Bar").transform.position[0];
y = thisComp.layer("Lower Third Bar").transform.position[1];
if (x>=960 && y&lt;1080)
then
?
else
?



Return to posts index

Dan Ebberts
Re: Using Position of another layer to start fade in effect
on Nov 24, 2013 at 8:08:47 am

If you want the fade to occur over a certain range of x positions of the bar, it might just be something like this:

x = thisComp.layer("Lower Third Bar").transform.position[0];
linear(x,960,1080,0,100)

If you want to trigger a certain animation as soon as the x crosses 960, for example, that's more complicated and requires an expression that can go back in time, frame by frame, to find the frame where the position went from less than 960 to greater than 960, then use the time since that event to drive your animation.

Dan



Return to posts index

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