-
Expression Keyframing?
Hi guys,
I’ve created a 3D hallway with a camera moving down through it. As you move down the room the next bit of text is shown in front of the camera. The problem Iam having is getting the camera property ‘Focus Distance’ to focus in on each bit of text as the camera moves down the hallway. Iam using the following expression:
length(thisComp.layer(“NameOfTextLayer”).transform.position,transform.position)
..which works perfect, but only for the first text layer. I can’t work out how to change the expression for this (or any) property further along the timeline (like keyframing). So I can’t change the expression to focus on any other layer 5sec down the timeline for example.
What Iam trying to say is, is there a way to change “NameOfTextLayer” in the above expression at different positions on the timeline?
E.g. 1sec = length(thisComp.layer(“Text1”).transform.position,transform.position)
5sec = length(thisComp.layer(“Text2”).transform.position,transform.position)I tried to use Animation > Keyframe Asssitant > Convert Expression to Keyframes, but that didn’t seem to do anything.
Thanks for any help in advance,
Tom