Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Technical question…

  • Technical question…

    Posted by Stephen Reber on June 25, 2009 at 4:28 am

    Hey guys…

    I have a little bit of a technical question. I am looking at the wiggle() and random() expressions. They both generate random values although both have different effects, but why is it that the random() expression can be +/-/* and / to/from a value, but the wiggle() expression has to be PART of a value… transform.position.wiggle()[0]??

    I am just trying to better understand the inner workings of expressions.

    Thanks in advance for your help…

    Stephen =]

    Stephen Reber replied 16 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 25, 2009 at 1:15 pm

    That’s just the way they implemented it. random() is a stand-alone random number generator and wiggle() is property method used to apply perlin noise variations to the specified property. You can separate wiggle() from the property value like this:

    w = wiggle(1,50) – value;

    Or, if you’re wiggling the property other than where the expression lives:

    w = transform.position.wiggle(1,50) – transfrom.position

    Dan

  • Stephen Reber

    June 26, 2009 at 2:41 am

    Excellent!

    Thanks Dan =]

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