Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions wiggling variables within an expression

  • wiggling variables within an expression

    Posted by Tom Gomez on July 21, 2018 at 10:42 pm

    Greetings Expression Gurus,

    Super quick question:

    For some positioning stuff I’m doing, I have this simple expression to get my x/y coordinates:
    X=(effect(“X click”)(“Slider”))*32+1376;
    Y=(effect(“Y click”)(“Slider”))*32+672;

    No problem.

    But then I’d like to affect the resulting x/y coordinates with this wiggler–which I modify with sliders on a different layer:
    wiggle (thisComp.layer(“NETWORK CONTROLLER”).effect(“wiggle X”)(“Slider”),thisComp.layer(“NETWORK CONTROLLER”).effect(“wiggle Y”)(“Slider”))

    How do I get it to wiggle the X and Y of the first part of the expression?

    THANKS!

    Tom

    ================================================
    TOMDURHAM.COM
    Writing, Indie Filmmaking
    Sci-fi, Fantasy, Anything Else That’s Cool

    https://www.95ers.com
    https://www.SpaceAceMedia.com

    Tom Gomez replied 7 years, 9 months ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    July 21, 2018 at 11:17 pm

    Something like this probably (not tested though):

    X=(effect(“X click”)(“Slider”))*32+1376;
    Y=(effect(“Y click”)(“Slider”))*32+672;
    L = thisComp.layer(“NETWORK CONTROLLER”);
    w = wiggle (L.effect(“wiggle X”)(“Slider”),L.effect(“wiggle Y”)(“Slider”))-value;
    [X,Y] + w

    Dan

  • Kalleheikki Kannisto

    July 23, 2018 at 8:36 am

    Alternately, you can add a wiggle expression directly to the sliders.

    Kalleheikki Kannisto
    Senior Graphic Designer

  • Tom Gomez

    July 27, 2018 at 3:06 pm

    Thanks as always!!!

    ================================================
    TOMDURHAM.COM
    Writing, Indie Filmmaking
    Sci-fi, Fantasy, Anything Else That’s Cool

    https://www.95ers.com
    https://www.SpaceAceMedia.com

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