# Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Uniform Scale Wiggle

• # Uniform Scale Wiggle

Posted by on July 1, 2008 at 4:04 pm

Hello there.

I think it´s a pretty simple thing but I can´t find it anywhere.

I guess I´ve even done this before but my brain is failing me.

So what I want to do is simply make a circle´s scale
wiggle uniformly(x and Y with equal values).

How do I achieve that?

Sorry if there are answers allready in the cow, but I could not find it.

Ok, thanxxx allready and cheers.

a.ninguem.

9 Members · 14 Replies
• 14 Replies
• ### Dan Ebberts

July 1, 2008 at 4:39 pm

Like this:

w = wiggle(5,30);
[w[0],w[0]]

Dan

• ### Adriano Moraes

July 1, 2008 at 5:57 pm

Thank you Dan!

I gotta visit Motionscript.com a little more (and deeply) and finally LEARN the stuff.

Thanx again.

Cheers.

a.ninguem.

• ### Gon Perdigao

June 4, 2013 at 8:36 am

Mr Dan you are a master 🙂 !!!!

• ### Vincent Rogozyk

November 18, 2013 at 6:56 pm

Hi Dan,
Is there a way to make the uniform wiggle loopable?

Thanks a lot for your help.
Best Regards,
Vincent

• ### Dan Ebberts

November 18, 2013 at 7:28 pm

This should work:

freq = 1;
amp = 110;
loopTime = 3;
t = time % loopTime;
w1 = wiggle(freq, amp, 1, 0.5, t)[0];
w2 = wiggle(freq, amp, 1, 0.5, t – loopTime)[0];
linear(t, 0, loopTime, [w1,w1], [w2,w2])

Dan

• ### Vincent Rogozyk

November 18, 2013 at 7:37 pm

Thanks a LOT.

• ### Mil Malchiodi

January 29, 2014 at 3:51 pm

Thanks a lot Dan!

-MiL-

• ### Rod Duarte

February 23, 2021 at 4:29 pm

Hey all!
I’m trying to use this, and I’m getting a syntax error on line 6…

I’m guessing AE changed something, since this is old?

• ### Dan Ebberts

February 23, 2021 at 4:42 pm

I think the site redesign text formatting must have substituted a different character for the minus sign in line 6. Try it this way:

`freq = 1;amp = 110;loopTime = 3;t = time % loopTime;w1 = wiggle(freq, amp, 1, 0.5, t)[0];w2 = wiggle(freq, amp, 1, 0.5, t - loopTime)[0];linear(t, 0, loopTime, [w1,w1], [w2,w2])`
• ### Angus McCracken

May 17, 2021 at 6:24 pm

this is crazy, I’ve learned a bit of scripting and thought – I can handle this.

So I typed :

i=wiggle(2,5);

[i[0],i[1]]

Doesn’t uniform scale.

So I paste your code:

w = wiggle(5,30);
[w[0],w[0]]

and it works.

Spaces? i not w? What’s the deal? Does AE think ‘that’s some Dan Ebberts code so make it work.

Page 1 of 2

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