Hey folks...

Okay, a bit weird answering my own question but I found a solution by Dan Ebberts! it is not 100% as a wished but rather 99% 😉

Since I use sampleImage and a precomp/mask for the scaling animation, the idea with the sampleimage came in great and handy! Thank you Dan!!!

The solution is from this topic:

https://forums.creativecow.net/docs/forums/post.php?forumid=227&postid=2232...
Cheers

Emil

`L = thisComp.layer("sampleLayer_A");`

threshold = 0.00001;

trig = false;

ss = [width,height]/2;

for (f = timeToFrames(); f >= 0; f--){

t = framesToTime(f);

v = L.sampleImage(L.fromComp(toComp(anchorPoint,t),t),ss,true,t)[3];

if (trig && (v < threshold)) break;

if (v >= threshold) trig = true;

}

t = trig ? time - framesToTime(f+1) : 0;