Page 1 of 1

Jumpy Hold WIGGLE

Posted: September 23rd, 2004, 11:48 am
by lloydalvarez
Have you ever wanted to wiggle something, but have it jump around instead of linearly animate?

Code: Select all

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

modify the numbers are necessary.. enjoy

-Lloyd

Posted: September 23rd, 2004, 3:02 pm
by lloydalvarez
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:

Code: Select all

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

UPDATE!!

Posted: June 2nd, 2006, 6:54 am
by lloydalvarez
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:

Code: Select all

fps=15; //frequency
amount=50;  //amplitude

wiggle(fps,amount,octaves = 1, amp_mult = 0.5,(Math.round(time*fps))/fps);


Posted: July 19th, 2006, 2:56 pm
by Animamigrante
ciao lloydalvarez :)
I looking for a list of EXPRESSIONS like this:

wiggle(100,100)

there is other simple expressions as that???

Re: Jumpy Hold WIGGLE

Posted: February 1st, 2012, 2:21 am
by pecijackson
simple, easy, cool expression sir. thanks for share :D

Re:

Posted: February 1st, 2012, 6:53 am
by lloydalvarez
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

Re: Jumpy Hold WIGGLE

Posted: February 3rd, 2015, 7:57 pm
by Ker26Gage2
Thanks for the information guys.