Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Control Child Layer

  • Control Child Layer

    Posted by Darren Lee on November 26, 2015 at 9:51 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

    Darren Lee replied 10 years, 6 months ago 3 Members · 3 Replies
  • 3 Replies
  • Walter Soyka

    November 26, 2015 at 2:11 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   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Kalleheikki Kannisto

    November 26, 2015 at 2:15 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

  • Darren Lee

    November 26, 2015 at 3:08 pm

    Thanks both

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy