Skip to main content

รวมเทคนิค Adobe After Effect

Cutsom Expression

wiggle(0.3,35) 
wiggle(freq, amp, octaves=1, amp_mult=.5, t=time)

//freq being the frequency, so how often per second the value should wiggle

//amp being the amplitude, so how far the value should wiggle

//octaves is the number of octaves of noise to add together.

//This value controls how much detail is in the wiggle.

//Make this value higher than the default of 1 to include higher frequencies or lower to include amplitude harmonics in the wiggle.

//amp_mult is the amount that amp is multiplied by for each octave.

//This value controls how fast the harmonics drop off.

//t is the base start time.


//If your wiggle expression should start at 3 seconds

timeToStart = 3; 

if (time > timeToStart){ 

    wiggle(3,25); 

}else{ 

    value; 

}


//If your wiggle expression should stop at 10 seconds

timeToStop = 10; 

if (time > timeToStop){ 

    value; 

}else{ 

    wiggle(3,25); 

}


//If your wiggle expression should start at 5 seconds and stop at 15 seconds

timeToStart = 5; 

timeToStop = 15; 

  

if ((time > timeToStart) && (time < timeToStop)){ 

    wiggle(3,25); 

}else{ 

    value; 

}

 


Tell the wiggle Expression to only wiggle in one direction

//wiggle only in x (horizontal):

org=value;

temp=wiggle (5,50);

[temp[0],org[1]];


//Shorthand:

[wiggle(5,50)[0],position[1]]


//wiggle only in y (vertical):

org=value;

temp=wiggle (5,50);

[org[0],temp[1]];


//Shorthand:

[position[0],wiggle(5,50)[1]]

https://www.cgdirector.com/after-effects-wiggle-expression/#:~:text=The%20Wiggle%20Expression%20in%20After,animate%20a%20blinking%2Fflickering%20light. 


linear(value, ตํ่าสุด, สูงสุด, 1, 20)

Comments