Mint Green Numbers in Expression Driven Value Fields?
I'm having a hard time figuring this one out. I don't see anything in the manual or anywhere that I can find online, but it is a tough one to search for.
I've got an expression driven position property in a project that's giving me green values in the composition panel. The values count up and appear as though they're evaluating a "for" loop that I've got in the expression. While the numbers are green, it locks up the expression and I'm not able to edit the property in any way until the green numbers hit the "target" value, and then the numbers go back to red. This takes about twenty seconds every time I move the playhead. However, if I just RAM preview the timeline, the expression seems to evaluate extremely quickly, less than a second per frame.
What these values look like:

The expression:
x = 960;
y = 0;
searchLayer = thisComp.layer("EKG Precomp");
lumaTolerance = 0.9;
searchRadius = [1, 1];
for (i = 10; i < thisComp.height; i++){
lumaLookup = searchLayer.sampleImage([959, i], searchRadius, false, time);
if (lumaLookup[0] < lumaTolerance){
y = i;
break;
}
}
y += (content("Ellipse 1").content("Ellipse Path 1").size[1] / 2);
[x, y]I know that this code isn't super clean or efficient; it's just a proof of concept for a friend.
What do these green values refer to?
