-
Evaluate expression at time
Hi to everybody,
i’ve got a question for you all. I’m using the espression below to evaluate the first pixel on X coordinate at fixed Y.
L = thisComp.layer("00_LAYOUT_SOTTOPANCIA_STILL");
w =L.width;
h = 355;K=0;
for (i = 0; i < w;i++)
{
p = L.sampleImage([i,h], [.1,.1]);
if (p[3]>0.999)
{K=i; i=w}
}
K
It works fine, but the value is calcolated on every frame of the composition.
How can i “say” to AE to evaluate the result in a specific moment on the timeline?
Thank