This file contains 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
// Output Layer Name As Substring - Created by Animoplex: www.animoplex.com | |
// Output Last Character | |
lst = name.substr(name.length-1, name.length); | |
// Output First Character | |
lst = name.substr(0, 1); | |
// Output All Except First Two Characters | |
lst = name.substr(2, name.length); |
This file contains 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
// Distance Based Opacity Fade | |
// Original: https://helpx.adobe.com/after-effects/using/expression-examples.html | |
// Full Tutorial: https://www.youtube.com/watch?v=I-Acdl_l9G0&t=14s | |
startFade = 500; | |
endFade = 3000; | |
try { | |
C = thisComp.activeCamera.toWorld([0,0,0]); | |
} catch(err) { | |
w = thisComp.width * thisComp.pixelAspect; |
This file contains 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
// Pixel Length Calculator - Created by Animoplex: www.animoplex.com | |
// Calculates the length (in pixels) of two positions or points in 2D or 3D space. | |
// USE FOR: Any property that needs a dynamic length calculated. | |
// Variation A | |
// Apply to camera's Focus Distance property | |
length(pointOfInterest, position) | |
// Variation B |
This file contains 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
// Value Expression - Created by Animoplex: www.animoplex.com | |
// A basic value expression for use on a property in After Effects. | |
// Full Tutorial: https://www.youtube.com/watch?v=6TKEcTHdGK8 | |
// Value Example | |
value / 2 | |
// Value At Time Example | |
valueAtTime(2) |
This file contains 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
// Random Expressions - Created by Animoplex: www.animoplex.com | |
// Generate random numbers between 0 and 1 with random, seedRandom, and gaussRandom methods. | |
// Full Tutorial: https://www.youtube.com/watch?v=MITA3ygqvQY | |
// Random Examples | |
random() // Returns a random number between 0 and 1 on every frame | |
random(5) // Returns a random number between 0 and 5 on every frame | |
random(-5, 5) // Returns a random number between -5 and 5 on every frame | |
// gaussRandom Examples |
This file contains 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
// JavaScript Operator Examples - Created by Animoplex: www.animoplex.com | |
// The different operators in JavaScript and their outputs. | |
// Full Tutorial: https://www.youtube.com/watch?v=ppCF7jS1nAs&t=18s | |
1 < 2 // true | |
1 > 2 // false | |
1 <= 2 // true | |
1 >= 2 // false | |
1 == 2 // false | |
1 != 2 // true |
This file contains 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
// Steadicam Wiggle | |
wiggle(1, 10, 2, 0.25) | |
// Frequency: 1, Amplitude: 10, Octaves: 2, Intensity: 0.25 |
This file contains 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
// Wiggle Expression | |
wiggle(2, 20) | |
// Frequency: 2, Amplitude: 20 |
This file contains 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
// Time Expression | |
time * 10 | |
// Output increases by 10 every second |
This file contains 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
// Posterize Time | |
posterizeTime(12); value | |
// Interpolates property at 12 fps regardless of composition frame rate |
OlderNewer