Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Double Exposure in AE

  • Double Exposure in AE

    Posted by Allen Bian on January 17, 2018 at 2:20 am

    hey Guys, need some help with AE expressions… So my goal is that have 1 or 2 lines of expression on Opacity of a picture or solid layer and when you duplicate the layer, the opacity will change automatically. For example, the first layer is 100%, and when you duplicate it, the new layer will be 50% and the next one will be 33% so on….
    The expression should be a index one, i am not sure what exactly it is, something like index>1 bulabulabula..

    Thanks!

    Dan Ebberts replied 8 years, 6 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    January 17, 2018 at 4:24 am

    Try this:

    index*100/thisComp.numLayers;

    (assumes all layers are participating)

    Dan

  • Allen Bian

    January 17, 2018 at 7:53 am

    Thanks for helping me, but can you be more specific for me?

    In my workspace, I created 10 layers since I don’t know how to write an automatic expression on Opacity, so the opacity of my first ‘Image Choice_1’ layer is 100%, and I wrote this on ‘ImageChoice_2’ layer: ‘ if(thisComp.layer(“ImageChoice_1”).transform.opacity>=100) 50 else 100; ‘.

    How to add your expression(index*100 thisComp.layer) to mine?

  • Dan Ebberts

    January 17, 2018 at 2:02 pm

    I’m not sure why you would need to combine expressions. If you apply my expression to each layer, you should get this for 1 layer:

    100

    this for 2 layers:

    50
    100

    this for 3 layers:

    33
    67
    100

    this for 4 layers:

    25
    50
    75
    100

    etc.

    Isn’t that what you wanted?

    Dan

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