-
sourcerectattime not working for a specific time
Hi, I have an expression that is working perfectly except for the fact that my title is animated in at the beginning ( in scale, position, and blur ). I thought I correctly identified the time to be 2 seconds so that any animation before or after would be disregarded, but its not working. I cannot figure out my error. Thanks for any help.
Adam
L = thisComp.layer(“TITLE”);
M = thisComp.layer(“DATE”);
rect = L.sourceRectAtTime(2,true);
rv = M.sourceRectAtTime(2,true);
x = L.toComp([rect.left+rect.width,0])[0];
y = M.toComp([rv.left+rv.width,0])[0];
xclamp=clamp(x,545.70,2000);
yclamp=clamp(y,545.70,2000);
if (x>y) xclamp+gap;
else yclamp+gap