download iExpressions at
https://aescripts.com/iexpressions/
In this tutorial we add elastic deformation in After Effects to a shape layer such that it deforms automatically when we move it. As an example, we use a plant whose leaves and branches should swing when we move it. The expression analyzes the movement of the layer and deforms it accordingly.