One of my favourite parts of this project, was a “responsive towers” rig. In After Effects, you don’t have option to set some sort of Collision Avoidance or Force Field on each layer or object, like you can in Blender or Cinema 4D. You have to “cheat” it, with expressions.
I created 3 controllers – 1 for each end of the underline and 1 overall for “master position” of all objects. Then I simply wrote a custom expression, with predefined “global margin” between each layer, which would evaluate each building position, as it’s scale changes and scale of neighbour buildings, too.
You can see the code on the right. It looks long, but it is pretty simple, works in real time and reacts to scale of each layer.