ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Simple Array Question

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Kevin Camin
Simple Array Question
on Mar 20, 2018 at 2:13:20 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


Return to posts index

Dan Ebberts
Re: Simple Array Question
on Mar 20, 2018 at 4:19:22 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



Return to posts index

Kevin Camin
Re: Simple Array Question
on Mar 24, 2018 at 10:41:17 pm

Ahhh. Thanks much!

Best regards,

Kevin Camin


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]