I want to my camera keyframe position move base on markers of a layer .
your expression worked finally with two keyframe. I tried to change and adopt it for more than two keyframe. but I got warning .
I changed your expression this way
L = comp(“master”).layer(thisComp.name);
if ((L.marker.numKeys > 1)){
t1 = L.marker.key(1).time;
t2 = L.marker.key(2).time;
t3= L.marker.key(3).time;
v1 = valueAtTime(key(1).time);
v2 = valueAtTime(key(2).time);
v3= valueAtTime(key(3).time);
linear(time,t1,t2,t3,v1,v2,v3)
}else{
value
}
and I got attached warning.
many thanks for your help.

<a href="https://images.creativecow.net/300638/attachment.jpg"><img src="https://i1.creativecow.net/u/300638/attachment.jpg" border="0" /></a>