Thank you for your answer.
But how does this make my first expression work while it is based exactly on the same system.
I even try to transform the expression of the position so that it is based on the ball and not on the meter but it doesn’t work either.
Here is the code :
pY = effect("Nombres")("Position")[1];
balle = thisComp.layer("Balle");
marche = -1;
for (i = 0; i <= timeToFrames(time); i++)
{
if (balle.transform.position.valueAtTime(framesToTime(i))[0]<=250)
{ pY = effect("Nombres")("Position").valueAtTime(framesToTime(i))[1] + marche ;
}
}
[value[0],pY]
Is there not a way to do what I want differently ?