hi kevin,
trying to do the same, but with several layers. so i’ve put this in:
target=thisComp.layer(index-1);
target.position + [target.width*.5*target.scale[0]/100+width*.5*scale[0]/100, 0]
the problem is, that the layers always move from the scaling layer to the right.
i would like them to move from the scaling layer to both sides the same way.
so i’ ve put it in like this:
target_up=thisComp.layer(index-1);
target_down=thisComp.layer(index+1);
a=target_up.width/2*target_up.scale[0]/100;
b=-target_down.width/2*target_down.scale[0]/100;
…
works fine for three layers, but i have about 30-50 layers.
thanks a lot for the help.
christian