Expressions/Scripts/Presets

Moderators: Disciple, zlovatt

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

Jumpy Hold WIGGLE

Thu Sep 23, 2004 11:48 am

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

Thu Sep 23, 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:

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
Topic Author
Posts: 460
Joined: Thu Jun 17, 2004 9:27 am
Location: New York City, NY
Contact:

UPDATE!!

Fri Jun 02, 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:

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

wiggle(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:

Wed Jul 19, 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: Tue Jan 31, 2012 12:23 am

Re: Jumpy Hold WIGGLE

Wed Feb 01, 2012 2:21 am

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

Re:

Wed Feb 01, 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: Tue Feb 03, 2015 6:31 pm

Re: Jumpy Hold WIGGLE

Tue Feb 03, 2015 7:57 pm

Thanks for the information guys.
Kerri

Who is online

Users browsing this forum: No registered users and 2 guests