Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Simple Array Question

  • Simple Array Question

    Posted by Kevin Camin on March 20, 2018 at 2:13 am

    I’m wiggling both properties uniformly below in the two sets of code. My question is why does the second one work? The second value in that array has a [0] designed to it, which I thought was reserved for the first number in the array. Shouldn’t this break the expression? Thanks for reading.

    w = wiggle(frequency, amount);
    [w[0],w[1]]

    w = wiggle(frequency, amount);
    [w[0],w[0]]

    Best regards,

    Kevin Camin

    Kevin Camin replied 8 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    March 20, 2018 at 4:19 am

    The second one uses the x component of the wiggle for both the x and y values of the property with the expression, which is what you would do to get scale to wiggle uniformly in both dimensions.

    Your first example doesn’t really do anything different than:

    wiggle(frequencey, amount)

    (assuming a 2D property)

    Dan

  • Kevin Camin

    March 24, 2018 at 10:41 pm

    Ahhh. Thanks much!

    Best regards,

    Kevin Camin

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