Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Switch parent of a layer based on opacity of another layer.

  • Switch parent of a layer based on opacity of another layer.

    Posted by Matt Volp on May 8, 2017 at 7:40 pm

    Say I have 5 layers, A, B C and D and X.

    I have the opacity of A, B, C and D linked to a drop down menu in a pseudo effect I have made using a Switch statement. Whichever layer is selected in the drop down list is at 100% opacity, the others will be at 0%.

    I want the parent of X to either be A, B C or D depending on which layer is ‘turned on’, or at 100%.

    Is this possible?

    Dan Ebberts
    replied 9 years ago
    2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    May 8, 2017 at 10:41 pm

    You can’t switch parents with expressions, but you could switch which layer a particular property is linked to. If you need it to start from the state it ended up in while following the previous “parent”, it gets more complicated. In that case your expression will have to re-create everything that has happened previously. A bit of work, but do-able.

    Dan

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