Just use the
d = toWorld(anchorPoint) – thisComp.layer(“scaling Null”).toWorld([0,0]);
distance=length(d);
linear(distance, 0, MaxDist, [maxScale, maxScale], [BaseSize, BaseSize]);
to determine a offset factor. modify it to fit in the other stuff and you’re good to go:
MaxDist=200;
d = toWorld(anchorPoint) – thisComp.layer(“scaling Null”).toWorld([0,0]);
distance=length(d);
pos_offset=linear(distance, 0, MaxDist, 0, 100]);
//decide whether the current icon is before or after the largest icon and move in the right direction
if (scale[0] < thisComp.layer(index+1).scale[0])
{pos_direction = -1}
else
{pos_direction = 1};
pos_new=position[0]+pos_offset*pos_direction;
[pos_new,position[1]]
Mylenium
[Pour Myl