Thanks for the quick response! I’m aware of using [1] to reference the second value in an array but was unsure why it must be specified following the valueAtTime function rather than in the variable itself. See below for the expression that is not working. Is it due to how valueAtTime works?
t = inPoint;
p = transform.position[1];
v = 100;
while (t < time){
if (p.valueAtTime(t) > 1000){
v = linear(time - t,0,2,100,0);
break;
}
t += thisComp.frameDuration;
}
v