Last active
June 14, 2023 08:00
-
-
Save Arslan-TR/0984a33440050371457d0f395328f678 to your computer and use it in GitHub Desktop.
JAVA - wiggle & loopOut expression After effects -_- Arslan_TR.jsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 | |
//----------------- | |
// for who interested commenting of the code is like bellow guys: | |
value1 = [wiggle(0.4, 30)[0], wiggle(0.6, 20)[1]]; // Calculate value1: Obtain X and Y values using wiggle | |
value2 = loopOut("continue"); // Calculate value2: Create a loop using "continue" mode | |
originalPosition = thisLayer.transform.position.value; // Get the original position | |
newValue = originalPosition + value1 - value2; // Calculate the new value: Add value1 to the original position and subtract value2, to remain at original position | |
newValue; //final value of courrrrsssseee | |
//----------------- | |
// turkish (Türkçe) | |
// Değer 1 hesaplanıyor: X ve Y değerlerini 'titreme' eklenir | |
deger1 = [wiggle(0.4, 30)[0], wiggle(0.6, 20)[1]]; | |
// Değer 2 ye "devam" modunda 'döngü' oluşturulur | |
deger2 = loopOut("continue"); | |
// Orijinal pozisyon alınıyor | |
orijinalPozisyon = thisLayer.transform.position.value; | |
// Yeni değer hesaplanıyor: Orijinal pozisyona 'değer 1' ekleniyor ve 'değer 2' çıkarılıyor | |
yeniDeger = orijinalPozisyon + deger1 - deger2; | |
yeniDeger; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment