I think you may have an error when no markers are present. This should not throw any error, even if no markers are there
dur = 12*thisComp.frameDuration;
d1 = (thisComp.layer("TextBox 1").content("Rectangle 1").content("Rectangle Path 1").size[0]/2) ;
d2 = (thisComp.layer("TextBox 2").position[0]) ;
d3 = (thisComp.layer("TextBox 3").position[0]) ;
d4 = (thisComp.layer("TextBox 4").position[0]) ;
d5 = (thisComp.layer("TextBox 5").position[0]) ;
d6 = (thisComp.layer("TextBox 6").position[0]) ;
d7 = (thisComp.layer("TextBox 7").position[0]);
d8 = (thisComp.layer("TextBox 8").position[0]);
d9 = (thisComp.layer("TextBox 9").position[0]);
d10 = (thisComp.layer("TextBox 10").position[0]);
move1 = d1;
move2 = d1 + d2;
move3 = d1 + d3;
move4 = d1 + d4;
move5 = d1 + d5;
move6 = d1 + d6;
move7 = d1 + d7;
move8 = d1 + d8;
move9 = d1 + d9;
move10 = d1 + d10;
pos = [
value - move1,
value - move2,
value - move3,
value - move4,
value - move5,
value - move6,
value - move7,
value - move8,
value - move9,
value - move10,
];
if (marker.numKeys > 0) {
n = marker.nearestKey(time).index;
if (marker.key(n).time > time) {
n--;
}
}else{
n=0;
}
if (n == 0 || n >= pos.length){
pos[0];
}else{
t = marker.key(n).time;
ease(time,t,t+dur,pos[n-1],pos[n])
}
Andrei
My Envato portfolio.