Shows how to use a while loop expression in After Effects to keep a layer upright while inheriting a parent chain's position and scale but not its rotation. The walkthrough covers defining variables, the loop condition, and applying the expression to other layers with Code Runner.
What you’ll learn
✓Write a while loop expression that walks up a parent chain
✓Counter-rotate child layers so they stay upright
✓Apply a rotation expression across layers with Code Runner