I works beautifully, except the animation changed and now the rotation has to occur 4 frames before the postion transformation. Obviously I can’t just switch the markers, so I tried re-writing the code as below, but that didn’t work.
Is there something strange in the sequence?
Thanks,
Birgit
Position: everyone converges on a target point at marker 2
target = [1296,1194];
frames = 5;
if (thisComp.marker.numKeys >1){
 t0 = thisComp.marker.key(2).time;
 ease(time,t0,t0+frames*thisComp.frameDuration,value,target)
}else{
 value
}
Rotation: at marker 1, everyone rotates randomly between -5 and plus 5
maxR = 5;
frames = 2;
if (thisComp.marker.numKeys >0){
 seedRandom(index,true);
 target = random(-maxR,maxR);
 t0 = thisComp.marker.key(1).time;
 ease(time,t0,t0+frames*thisComp.frameDuration,value,target)
}else{
 value
}