| **Detailed wiggle expression for 2 dimensions**
on Jul 22, 2018 at 10:27:17 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;

| **Re: Detailed wiggle expression for 2 dimensions** on Jul 23, 2018 at 12:28:27 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

| **Re: Detailed wiggle expression for 2 dimensions** on Jul 23, 2018 at 10:39:37 pm |

And this works! Thank you Dan!