Jumpy Hold WIGGLE

Moderators: Disciple, zlovatt

Post Reply
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

September 23rd, 2004, 11:48 am

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
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

September 23rd, 2004, 3:02 pm

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
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

June 2nd, 2006, 6:54 am

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);

Animamigrante
Posts: 2
Joined: July 19th, 2006, 9:54 am
Location: Europe, Italy, Naples
Contact:

July 19th, 2006, 2:56 pm

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: January 31st, 2012, 12:23 am

February 1st, 2012, 2:21 am

simple, easy, cool expression sir. thanks for share :D
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

February 1st, 2012, 6:53 am

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: February 3rd, 2015, 6:31 pm

February 3rd, 2015, 7:57 pm

Thanks for the information guys.
Kerri
Post Reply