Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Wiggle only positive values two dimensions

  • Wiggle only positive values two dimensions

    Posted by David Cabestany on August 16, 2024 at 5:22 pm

    Can anyone help me make this expression work for two dimensional properties? Currently it only works for one dimension stuff, like rotation, I’d like to use it on position or scale but it’s returning the following error:

    “couldn’t turn result into numeric value”

    w = wiggle(3,.02);
    d = w - value;
    value + Math.abs(d)

    Thanks in advance.

    Brie Clayton
    replied 3 weeks, 1 day ago
    4 Members · 5 Replies
  • 5 Replies
  • Yoan Boisjoli

    August 16, 2024 at 5:31 pm

    Can’t test it right now but I think something like this could work:

    w = wiggle(3, .02);

    d = w – value;

    [value[0] + Math.abs(d[0]), value[1] + Math.abs(d[1])]

  • Dan Ebberts

    August 16, 2024 at 5:31 pm

    Depending on how you want it to behave, this would be one way:

    w = wiggle(3,.02);
    d = w - value;
    value + [Math.abs(d[0]),Math.abs(d[1])]
  • David Cabestany

    August 16, 2024 at 5:42 pm

    thanks but unfortunately no dice. it returned this error: “invalid or unexpected token”.

  • David Cabestany

    August 16, 2024 at 5:43 pm

    Dan the man to the rescue, as usual. Thanks a lot.

  • Brie Clayton

    August 16, 2024 at 9:22 pm

    Thank you for solving this, Dan!

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