Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Layer Controls from a Master Composition

  • Layer Controls from a Master Composition

    Posted by Ben Dunlop on February 15, 2012 at 1:03 am

    Hey all, I have been doing some research on trying to figure out how or if it is possible to control layers from 1 master composition.

    Rough Example, I hope I can explain it well enough.

    I have Master_Comp (inside) Comp1 (inside) Comp2 (inside) Comp3 (inside) Layer1, Layer2, Layer3, Layer4 etc….

    Master_Comp
    - Comp1 (Selected Layer)
    -Comp2
    -Comp3
    -Layer1
    -Layer2 (shy toggled)
    -Layer3 (shy toggled)
    -Layer4


    Is it possible using a script if I have Comp1 selected I can edit the layers inside of Comp3, toggle shy on and off, opacity 100 / 0 etc

    Thanks heaps

    Dan Ebberts replied 14 years, 6 months ago 3 Members · 2 Replies
  • 2 Replies
  • Erik Lindahl

    February 21, 2012 at 12:00 pm

    I guess you’re looking for the same thing as me – being able to edit layers in a pre-comped composition. For example having the layer “Layer 1” placed in “Comp 1”. This comp is placed in “Comp 2”. In Comp 2 I add the layer “Layer 2”. Here I’d like to do an expression to affect layer 1 in Comp 1 pre-comped in Comp 2 based on values from Layer 2 in this comp.

  • Dan Ebberts

    February 21, 2012 at 9:26 pm

    Expressions can easily link to layers/properties in other comps like this:

    comp(“Comp 2”).layer(“Layer 2”).effect(“Slider Control”)(“Slider”)

    Note that the expression has to be on the property being controlled (in your example the expression would be on Layer 1 in Comp 1) because an expression can only control the property to which it is applied. Sorry if you already knew that–I couldn’t tell from your question.

    Dan

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