Hello Dan,
Is it possible to upgrade your expression for both height & width?
Also can you explain why this expression makes everything so slow?
Thanks
Yair
for (i = 0; i <= thisComp.width; i++){
temp = sampleImage([i,thisComp.height/2],[0.5,thisComp.height/2],true,time);
if (temp[3] > 0) break;
}
for (j = thisComp.width; j >= 0; j--){
temp = sampleImage([j,thisComp.height/2],[0.5,thisComp.height/2],true,time);
if (temp[3] > 0) break;
}
value + [(thisComp.width - i - j)/2,0]