download iExpressions at
https://aescripts.com/iexpressions/
In this tutorial you learn how to connect a layer to a path such that it can travel along the path or stay connected to a specific point on the path even if the path is animated. The expression we use can also set the rotation of the layer such that it follows the direction of the path.