Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions 2 layers doing the opposite thing?

  • 2 layers doing the opposite thing?

    Posted by Aza Allen on October 20, 2008 at 12:29 am

    I have AE 7.0

    I’ve got 2 text layers offset from each other (exact same text)

    I have “wiggled” the opacity of one layer, but I want the other text layer to be on when the other one is off, basically doing the opposite of the other, how can I accomplish this?

    Also, how can I get the expression to just have the opacity go to 0 or 100 (nothing in between)?

    Thanks all

    Make sure to check out my Heroes Fan Film at http://www.myspace.com/ruesterprod

    Jack Parks replied 17 years, 7 months ago 3 Members · 5 Replies
  • 5 Replies
  • Dan Ebberts

    October 20, 2008 at 3:59 am

    Set the opacity of both text layers to 50%.

    Apply this expression to one layer (adjust the “freq” frequency parameter to your liking):

    freq = 2;
    seedRandom(1,false);
    w = wiggle(freq,50);
    if (w>50) 100 else 0

    Apply this expression to the other layer:

    freq = 2;
    seedRandom(1,false);
    w = wiggle(freq,50);
    if (w>50) 0 else 100

    Dan

  • Aza Allen

    October 20, 2008 at 9:33 am

    Thanks Dan!

    Make sure to check out my Heroes Fan Film at http://www.myspace.com/ruesterprod

  • Jack Parks

    October 20, 2008 at 4:26 pm

    Hi

    Could this expression be adapted for other properties, for example butterfly wings in 3D?
    [if you key framed the movement of one wing and the expression mirrored the keyframe
    and you could use the frequency to increase the flapping?].

    Thanks

  • Dan Ebberts

    October 20, 2008 at 4:38 pm

    I wouldn’t do it that way. I’d get the rotation expression set up the way I wanted for one wing (sine wave, wiggle, or combination) and then just use an expression like this for the other wing:

    -thisComp.layer(“right wing”).transform.zRotation

    (modified for whichever axis you’re using for rotationn)

    Dan

  • Jack Parks

    October 20, 2008 at 4:58 pm

    That’s great, thanks for the information.

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