ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Control Child Layer

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Darren Lee
Control Child Layer
on Nov 26, 2015 at 9:51:41 am

Hi

I am trying to keyframe the opacity of a layer within a nested comp from the main parent comp

The reason for this is that I want all my keyframes in the main comp

Is it possible using a control or adjustment layer via an expression?

Thanks


Return to posts index


Walter Soyka
Re: Control Child Layer
on Nov 26, 2015 at 2:11:52 pm

Yes. Add a slider control in your main comp to the precomp layer. Select it, then Edit > Copy with Property Links.

Step into your precomp, and select the opacity property of the layer you want the slider to affect. Paste.

This will add an expression like this:
comp("COMP_NAME").layer("LAYER_NAME").effect("SLIDER_NAME")("Slider")

If you have Ae CS6 or prior, you don't have the property links feature and you'll have to enter the expression above yourself (changing the all-caps stuff to match your actual setup).

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

Darren Lee
Re: Control Child Layer
on Nov 26, 2015 at 3:08:11 pm

Thanks both


Return to posts index



Kalle Kannisto
Re: Control Child Layer
on Nov 26, 2015 at 2:15:18 pm
Last Edited By Kalle Kannisto on Nov 26, 2015 at 2:19:47 pm

You can also use the opacity value directly. Assuming your main comp is called "Main Comp" and the layer the opacity of which you want to match is "My Layer" the expression for you nested layer's opacity would be:

comp("Main Comp").layer("My Layer").transform.opacity


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]