Check this comparison among different CPUs:
https://www.pugetsystems.com/labs/articles/After-Effects-CC-2017-2-CPU-Comparison-Skylake-X-Kaby-Lake-X-Broadwell-E-Kaby-Lake-Ryzen-7-977/
Adding coffee lake:
https://www.pugetsystems.com/labs/articles/After-Effects-CC-2017-2-CPU-Performance-Core-i7-8700K-i5-8600K-i3-8350K-1055/
rendering is still more CPU intensive and 7700 should be the correct choice. However, 8700k can be considered if you will use 4D rendering. For 3D, 7700k is slightly worse. 8700k is ~$400 and new Z370 MB is ~$100+, just an FYI. 1050 ti has 4gb, do not get 1050 2gb version.