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
// Z Offset Using Radius - Created by Animoplex: www.animoplex.com | |
// First line is the source of the offset, apply to position value on a grid of shapes | |
tar = thisComp.layer("TARGET").toWorld([0,0,0]); | |
rad = 100; // radius | |
mov = 500; // pixels of movement | |
dis = length(tar, toWorld([0,0,0])); | |
end = [value[0], value[1], value[2] + mov]; | |
ease(dis, 0, rad, end, value) |
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
// Alternating Outputs - Created by Animoplex: www.animoplex.com | |
// Output changes between "Off" and "On" (or any output of your choice) every 10 frames | |
f = 10; // frame interval | |
int = framesToTime(f); | |
num = Math.floor( time / int ); | |
if (( num % 2 ) == 0 ) { | |
"Off" // default output | |
} else { | |
"On" // alternate output |
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
// Advanced Wiggle Example - Created by Animoplex: www.animoplex.com | |
// The full expression from Lesson 507 which builds an advanced wiggle expression using a pseudo effect. | |
// Full Tutorial: https://www.youtube.com/watch?v=b4AAkT2Xuio&t=17s | |
src = effect("Wiggle Control"); | |
tog = src("Toggle"); | |
if (tog == true) { | |
freq = src("Frequency"); | |
amp = src("Amplitude"); | |
val = wiggle(freq, amp); |
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 While Loop Example - Created by Animoplex: www.animoplex.com | |
// The JavaScript While Loop and how it can be used in After Effects. | |
// Full Tutorial: https://www.youtube.com/watch?v=SG3NyHmfc0s&t=225s | |
src = thisComp.layer("Control").effect("Acceleration")("Slider"); | |
dur = thisComp.frameDuration; | |
dist = 0; | |
t = 0; | |
while (t < time) { | |
dist += src.valueAtTime(t) * dur; |
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 For Loop Example - Created by Animoplex: www.animoplex.com | |
// The JavaScript For Loop and how it can be used in After Effects. | |
// Full Tutorial: https://www.youtube.com/watch?v=SG3NyHmfc0s&t=91s | |
myArray = []; | |
for (i = 0; i < thisComp.numLayers; i++) { | |
myArray[i] = thisComp.layer(i+1).name; | |
} | |
myArray.slice(0, thisComp.numLayers).join("\r") |
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
// Universal Expression Syntax - Created by Animoplex: www.animoplex.com | |
// The different types of expression syntax in After Effects and how to make them compatible in any language. | |
// Full Tutorial: https://www.youtube.com/watch?v=b1MxtywoqHg&t=192s | |
// Default Compact Expression: | |
effect("Fill")("Color") | |
// Basic Universal Expression (Property Index): | |
// Replace the effect property’s name with the property’s index. | |
// Give the effect object a custom name to avoid any localization errors. |
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
// After Effects Number Methods - Created by Animoplex: www.animoplex.com | |
// List of compatible number methods in After Effects expressions and what they do. | |
// Full Tutorial: https://www.youtube.com/watch?v=l7Xd8mkqWfc&t=268s | |
// Outputs 10 as an integer, converting it from a string. | |
Number("10") | |
// Outputs 1 as an integer, the first valid number in the string. It ignores the second integer | |
parseInt("Layer 1 Copy 2") |