Dan, thank you very much!
Yes, I am trying to build a project that could be used in any situation where we have between 2 and 15 points and the corresponding number of markers.
I will try to modify the expression above to fit that scenario.
You mentioned there is a better way to do this with more points, if the explanation doesn't take too much of your time please let me know.
Thank you again.
This would be the basic idea, but it needs some additional code to handle the situation where the number of points and markers aren't the same:
m = thisComp.marker;
tLayer=thisComp.layer("Shape Layer 1");
tPath=tLayer.content("Shape 1").content("Path 1").path;
p = tPath.points();
if (m.numKeys > 1){
n = m.nearestKey(time).index;
if (time < m.key(n).time) n--;
if (n == 0){
tLayer.toComp(p[0]);
}else if (n == m.numKeys){
tLayer.toComp(p[n-1]);
}else{
p1 = tLayer.toComp(p[n-1]);
p2 = tLayer.toComp(p[n]);
ease(time,m.key(n).time,m.key(n+1).time,p1,p2);
}
}else
value