Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Opposite opacity expression

  • Opposite opacity expression

    Posted by Olly Bea on November 26, 2010 at 10:36 am

    Hey there

    I have no clue how to begin writing this…

    I have 2 layers where I would like the first layers opacity to control the second layers opacity… simple enough, but I want the second layers opacity to be opposite to the first layers, so for example when the first layer is at 100% the second layers opacity is at 0% and vice versa. This will also work where if one layer is at 56% for example the other layer is at 44%.

    Any ideas?

    Cheers

    Olly

    Olly Bea replied 15 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    November 26, 2010 at 5:49 pm

    For the second layer’s opacity:

    100 – thisComp.layer(“first layer”).transform.opacity

    Dan

  • Olly Bea

    November 29, 2010 at 12:34 pm

    Thanks Dan, works a treat!

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