-
“Follow the leader” in 2D with Scaling
Hi,
Hopefully I don’t get on anyones nerves with my endless Fish animation problems! I got some good advice over at the After Effects forum, but I think I might need a solution involving expressions.
I have a row of fishes following a complex, spiral-ish 2D path. The fishes are supposed to get smaller and smaller as they approach the center of the animation: Right now I have animated 1 fish, and duplicated and time offset the layers.

As you can see, as the fishes are getting smaller, the distance between them also gets larger. I want them to have an even distance to each other, like one biting the next one’s tail.
Because of the fact that the fishes have to fit exactly within the outlines of the coloured areas, I cannot use a 3D path for this animation (the tweaking of the 3D path to match the 2D drawing would take forever). Also, the scaling isn’t linear, i have to use several keyframes to make the size of the fishes match the background. I need some parenting expression that takes the parent’s “scale” value into consideration and that calculates the distance between the fishes from the tail/head rather than from the centers. I have found some interesting stuff here:
https://www.motionscript.com/mastering-expressions/follow-the-leader.html
But these scripts are based on a 3D scenario and don’t include the “scaling” parameter.
Any genius out there that can help me?
best-
Wilhelm