When a layer is set to inherit properties from a parent layer, position, scale, and rotation movements of the parent layer affect the child layer. What if you want the position to be inherited, but not rotation. Luckily, there is an expression that will allow the parented rotation value to be ignored.
To start, create an expression for the child layer’s rotation property. Then, type the following:
value-parent.transform.rotation;
Value is the layer’s value, and then you are removing the parent’s rotation value. Essentially, this negates the effect of the parenting for rotation and leaves the child layer’s original rotation values in tact.
Now, the parent layer still rotates but the child layer does not. The position values remain linked.
#adobe #aftereffects #expressions #motiongraphics