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
| // 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--; |
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 | |
OlderNewer