This section might look like it has a lot of code, but all of it is the same. The only difference is how X and Y is calculated in last lines for each line.
In previous section, we used Shape Layer to generate Cross. This time, because the lines are at an angle, it will be easier to create the final design with Pen Tool and reposition Shape Path Points. Simply draw a line with Pen Tool. Then on Path Property, run script that generates Nulls that Follow Points – it is built in the After Effects in Window drop down.
Then on generated Nulls, add Anchor Point expression from section above. Finally, add the above Position expressions for each Null to push it in right place – Top Left, Bottom Right and so on.
Whole thing is pretty simple – we are grabbing bunch of variables linked up to our main CTRL layer. All the slides that control number of dots, gap between them, size and so on. Then from Composition Center, we are pushing Nulls in appropriate directions.
I’m using Composition Center to do it, as all the layers are using Anchor Point – Center and Position – Center expressions. Simply, we are generating all the graphics from Comp Center at this point.