-
Add expression that only affects first keyframe
Hi!
I have a lower thirds title and I’ve setup an expression so that the shape layer automatically changes the width to match whatever length the text layer is:
dFirst=thisComp.layer("TOP TEXT").sourceRectAtTime(time).width;value+[dFirst,0]*thisComp.layer("TOP TEXT").transform.scale[0]/100
It works great, except I have 2 position keyframes for animating the shape layer from off screen to on screen. If the text layer has too many characters, the first keyfame ends up being pull onto the screen because the entire shape layer is being moved by the expression.
Is there an expression I can add that will only affect the first keyframe so that it no matter what will keep a value that is off screen for the first frame in the composition?
And as a bonus I’ve copied and pasted the two keyframes to the end of the comp as well, then time reversed them so that the lower thirds exits the frame in the same way. If the expression would work for the last key frame to be off screen, that would be great!
Any help would be appreciated!
Thank you!