
Inherit Parent Opacity in After Effects
When you parent one layer to another, many properties work in sync. However, opacity does not. To inherit parent opacity, you could use the pickwhip to inherit the value. But, making an expression allows for more options.
To create the initial expression, set a keyframe for the layer you have set as the child. Create an expression for opacity. Then, type the following:
(hasParent) ? parent.opacity:value;
This checks for a parent, and if there is a parent, it uses the parent’s opacity as the value for the layer’s opacity.
This really comes in handy if you want to adjust this value further. For example, you may want the opacity to go up or down based on the parent layer, but at a different rate. You can alter this expression accordingly.
(hasParent) ? (parent.opacity/100)*50:value;
This expression makes the child layer’s opacity at half of the parent layer’s opacity. So, with just a little math, you have an easy way to control the inherited opacity.
Enjoying the news? Sign up for the Creative COW Newsletter!
Sign up for the Creative COW newsletter and get weekly updates on industry news, forum highlights, jobs, inspirational tutorials, tips, burning questions, and more! Receive bulletins from the largest, longest-running community dedicated to supporting professionals working in film, video, and audio.
Enter your email address, and your first and last name below!

Responses