Skip to content

Instantly share code, notes, and snippets.

View Arslan-TR's full-sized avatar
🏠
Working from home

M. Önlük Arslan-TR

🏠
Working from home
  • 07:42 (UTC +03:00)
View GitHub Profile
// auto animation Wiggle
// u can use for position/scale/rotation;
amp = .99;// genlik/amplitude
freq = 2;// titresim sikligi
decay = 5.5;// gecikme/bitis
n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time){
n--;
@Arslan-TR
Arslan-TR / JAVA - wiggle & loopOut expression After effects -_- Arslan_TR.jsx
Last active June 14, 2023 08:00
JAVA - wiggle & loopOut expression After effects -_- Arslan_TR.jsx
//its combining of wiggle position and looping animated keyframes together.
//paste to position of layer
value1 = [wiggle(0.4, 30)[0], wiggle(0.6, 20)[1]];
value2 = loopOut("continue");
originalPosition = thisLayer.transform.position.value;
newValue = originalPosition + value2 - value1;
newValue