Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions After Effects Opacity Expression

  • After Effects Opacity Expression

    Posted by Allen Bian on November 21, 2017 at 6:38 am

    Hi guys, I wonder if someone here could help me with making an expression.
    So my AE file is a double exposure template for users who are not familiar with after effects, users can drag sliders to control colors and opacity.
    What I have in the comp are a completed double exposure and multiple images
    I want to achieve when the user imports the first image the opacity will be 100% when import second image the opacity will be 50% and when impot three images into the comp will be 33.33, so on….
    The template does everything automatically.

    Demarc Johnson replied 8 years, 8 months ago 2 Members · 1 Reply
  • 1 Reply
  • Demarc Johnson

    November 22, 2017 at 2:08 am

    You can do that by using arrays and index.
    Just be mindful of order of layers when using index. If you have any other layers in the composition make sure that the those layers is underneath the image layers.

    var list = [100, 50, 33]; //Change these numbers in this array to whatever you need the opacity to be and you can add or remove the amount of numbers too. Remember when adding or removing that each number is separated by commas.
    list[index - 1];

    For Expression Tutorials:
    https://www.youtube.com/channel/UCe77szX2n1WSKsGs-2gmbDw

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