Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Detailed wiggle expression for 2 dimensions

  • Detailed wiggle expression for 2 dimensions

    Posted by Remi Monedi on July 22, 2018 at 10:27 pm

    Hi,
    ;
    Here is a great detailed wiggle expression I found on Creative Cow and written by Darby Edelen.

    It’s great, many different paramaters to work with BUT I can’t find a way to make it work with a 2D Position value [x,y] (each dimension.
    I’m not an expert, and did try for half an hour but well… No luck. If someone will be kind enough to show me, this would be greatly appreciated.

    Have a nice evening!

    f = 2;
    a = 4;
    exp = 3;
    sign = 1;
    w = wiggle(f,1) - value;
    if((w < 0)&&!(exp % 2)) sign = -1;
    (sign * a * Math.pow(w, exp)) + value;

    Remi Monedi replied 7 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 23, 2018 at 12:28 am

    I’m not sure what it does, but I’d try something like this:


    f = 2;
    a = 4;
    exp = 3;

    w = wiggle(f,1) - value;

    sign = 1;
    if((w[0] < 0)&&!(exp % 2)) sign = -1;
    x = (sign * a * Math.pow(w[0], exp));

    sign = 1;
    if((w[1] < 0)&&!(exp % 2)) sign = -1;
    y = (sign * a * Math.pow(w[1], exp));

    [x,y] + value

    Dan

  • Remi Monedi

    July 23, 2018 at 10:39 pm

    And this works! Thank you Dan!

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