Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Add element opacity to two different sliders.

  • Add element opacity to two different sliders.

    Posted by Torgeir Bull on February 18, 2011 at 12:47 pm

    Hi. I’m trying to make some controls for my AE-comp. There are four different senarios I’ll have to animate, so I tried to make four different sliders to effect the layers…

    The problem is that I want the opacity of one object to get influenced by two different sliders. How do I do this? I think it’s kind of basic, but I can’t seem to figure it out.

    Worst case senario I’ll have to make four times as many layers, and pickwhip to a single layer four times, but that’s what I try to avoid.

    Any ideas?

    This is what I tried:
    thisComp.layer("CONTROLS").effect("Startup")("Slider"), thisComp.layer("CONTROLS").effect("Empty_DustCollector")("Slider")

    I live frame by frame.

    Dan Ebberts
    replied 15 years, 2 months ago
    2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    February 18, 2011 at 5:25 pm

    How do the sliders interact? Did you just want to add them together? That would be like this:

    thisComp.layer(“CONTROLS”).effect(“Startup”)(“Slider”) + thisComp.layer(“CONTROLS”).effect(“Empty_DustCollector”)(“Slider”)

    or, is it more complicated than that?

    Dan

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