Expressions/Scripts/Presets

Moderators: Disciple, zlovatt

lloydalvarez
Enhancement master
Topic Author
Posts: 460
Joined: Thu Jun 17, 2004 9:27 am
Location: New York City, NY
Contact:

### Jumpy Hold WIGGLE

Have you ever wanted to wiggle something, but have it jump around instead of linearly animate?

``v=wiggle(5,50);if(v < 50)v=0;if(v > 50)v=100;v``

modify the numbers are necessary.. enjoy

-Lloyd

lloydalvarez
Enhancement master
Topic Author
Posts: 460
Joined: Thu Jun 17, 2004 9:27 am
Location: New York City, NY
Contact:
forgot to clarify that in this example wiggle will vary the incoming property value by 50, so if this is opacity for example and it is set to 50, then wiggle will output values from 0 to 100.

I am just pointing this out because it can be a bit confusing since the output is then defined by the expression, in this case 0 or 100, not the values output by the wiggle (although in this case i set it up so it would essentially be the same). But you could for example set opacity to 1 and then wiggle that by 1 and set the expression as follows:

``v=wiggle(5,1); if(v < 1)v=0; if(v > 1)v=100; v``

and still get the same output of 0 or 100.

-Lloyd

lloydalvarez
Enhancement master
Topic Author
Posts: 460
Joined: Thu Jun 17, 2004 9:27 am
Location: New York City, NY
Contact:

### UPDATE!!

While the code i showed in the previous posts works well for single value arrays like opacity, it does not work so well for multi value arrays like position. This code works beautifully for position:

``fps=15; //frequencyamount=50;  //amplitudewiggle(fps,amount,octaves = 1, amp_mult = 0.5,(Math.round(time*fps))/fps);``

Animamigrante
Posts: 2
Joined: Wed Jul 19, 2006 9:54 am
Location: Europe, Italy, Naples
Contact:
ciao lloydalvarez
I looking for a list of EXPRESSIONS like this:

wiggle(100,100)

there is other simple expressions as that???
ONE LIKE NO ONE

pecijackson
Posts: 8
Joined: Tue Jan 31, 2012 12:23 am

### Re: Jumpy Hold WIGGLE

simple, easy, cool expression sir. thanks for share

lloydalvarez
Enhancement master
Topic Author
Posts: 460
Joined: Thu Jun 17, 2004 9:27 am
Location: New York City, NY
Contact:

### Re:

Animamigrante wrote:
ciao lloydalvarez
I looking for a list of EXPRESSIONS like this:

wiggle(100,100)

there is other simple expressions as that???

If you want to play with expressions without having to write any code check out iExpressions: http://aescripts.com/iexpressions

Ker26Gage2
Posts: 2
Joined: Tue Feb 03, 2015 6:31 pm

### Re: Jumpy Hold WIGGLE

Thanks for the information guys.
Kerri

### Who is online

Users browsing this forum: No registered users and 1 guest