-
.sourceRectAtTime in combination with keyframes
Hi great expressionists (pun intended),
When having a lower third with a box that has to react to the text + some padding, how can I use the .sourceRectAtTime on only the keyframe’s I want?Let’s say I want to animate in the lower box from “nothing” (keyframe 1) to full/the length of text + padding (keyframe 2), and back from that (keyframe 3) to “nothing” (keyframe 4) again?
How can I script that?
If someone can give me the go-to expression + some explanation, I would be very thankful ☺What I now have is just a simple .sourceRectAtTime with some padding (ofcourse, I want to keep the padding):
title = thisComp.layer("FUNCTION_txt").sourceRectAtTime();
[title.width + 26, title.height + 45]

