Skip to content

Instantly share code, notes, and snippets.

View animoplex's full-sized avatar
🎯
Animating!

Animoplex animoplex

🎯
Animating!
View GitHub Profile
@animoplex
animoplex / MathMethods.jsx
Created September 4, 2018 02:13
Math Methods - After Effects Expression by Animoplex
// Math Methods - Created by Animoplex: www.animoplex.com
// Use these methods to manipulate properties and numerical values in After Effects.
// Full Tutorial: https://www.youtube.com/watch?v=aIxnJBOhdBw
// Math Method Examples
// Note: You must capitalize the M in Math for these methods to work properly.
Math.abs(-2) // Returns 2
Math.ceil(1.01) // Returns 2
Math.floor(1.99) // Returns 1
Math.min(1, 2, 3) // Returns 1
@animoplex
animoplex / LoopExpression.jsx
Created September 4, 2018 01:57
Loop Expression - After Effects Expression by Animoplex
// Loop Expression - Created by Animoplex: www.animoplex.com
// Basic loop expressions for use on a property in After Effects.
// Full Tutorial: https://www.youtube.com/watch?v=XRrs9pvWGuY
// Loop Examples
loopOut("cycle", 0) // Repeat from start to finish. Default loop mode.
loopOut("pingpong", 2) // Loops last three keyframes back and forth.
loopOut("offset", 0) // Repeats animation using last keyframe as new start point.
loopOut("continue") // Does not loop, but continues onwards with current velocity.
@animoplex
animoplex / LinearEaseExpression.jsx
Created September 4, 2018 01:52
Linear & Ease Expression - After Effects Expression by Animoplex
// Linear & Ease Expression - Created by Animoplex: www.animoplex.com
// Basic linear and ease expressions for use on a property in After Effects.
// Full Tutorial: https://www.youtube.com/watch?v=TFXgX0IiamQ
// Linear Example
linear(time - inPoint, 0, 100)
// Ease Example
ease(time - 5, 100, 0)
@animoplex
animoplex / ValueExpression.jsx
Created September 4, 2018 01:47
Value Expression - After Effects Expression by Animoplex
// 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)
@animoplex
animoplex / TimeExpression.jsx
Created September 4, 2018 01:44
Time Expression - After Effects Expression by Animoplex
// Time Expression - Created by Animoplex: www.animoplex.com
// A basic time expression for use on a property in After Effects.
// Full Tutorial: https://www.youtube.com/watch?v=YLapbNyYxLs
// Time Example
time * 10
// Time + Wiggle Example
wiggle(5, time)
@animoplex
animoplex / WiggleExpression.jsx
Created September 4, 2018 01:35
Wiggle Expression - After Effects Expression by Animoplex
// Wiggle Expression - Created by Animoplex: www.animoplex.com
// A basic wiggle expression for use on a property in After Effects.
// Full Tutorial: https://www.youtube.com/watch?v=AmmXDOFMjz8
// Wiggle Example
wiggle(2, 20)
// Steadicam Wiggle Example
wiggle(1, 10, 2, 0.25)
@animoplex
animoplex / SpeedVelocity.jsx
Last active June 29, 2020 17:19
Speed & Velocity - After Effects Expression by Animoplex
// Speed & Velocity - Created by Animoplex: www.animoplex.com
// A couple of examples of speed and velocity formatting.
// Full Tutorial: https://www.youtube.com/watch?v=47OWQmcez9M
// Speed
transform.position.speed
// Velocity
transform.position.velocity
@animoplex
animoplex / MathMethods.jsx
Created April 16, 2018 16:02
JavaScript Math Methods - After Effects Expression by Animoplex
// JavaScript Math Methods - Created by Animoplex: www.animoplex.com
// List of math methods for After Effects expressions and what they output.
// Note: You must capitalize the M in Math for these methods to work properly.
Math.abs(-2) // Returns 2
Math.ceil(1.01) // Returns 2
Math.floor(1.99) // Returns 1
Math.min(1, 2, 3) // Returns 1
Math.max(1, 2, 3) // Returns 3
Math.round(1.49) // Returns 1
@animoplex
animoplex / AfterEffectsStringMethods.jsx
Last active June 29, 2020 17:10
After Effects String Methods - After Effects Expression by Animoplex
// After Effects String Methods - Created by Animoplex: www.animoplex.com
// List of compatible string methods in After Effects expressions and what they do.
// Full Tutorial: https://www.youtube.com/watch?v=l7Xd8mkqWfc&t=268s
// Outputs 2 characters, starting after the first character.
myString.substr(1, 2)
// Outputs everything after the first character, through the second character.
myString.substring()
@animoplex
animoplex / AfterEffectsArrayMethods.jsx
Last active August 22, 2022 11:09
After Effects Array Methods - After Effects Expression by Animoplex
// After Effects Array Methods - Created by Animoplex: www.animoplex.com
// List of compatible array methods in After Effects expressions and what they do.
// Full Tutorial: https://www.youtube.com/watch?v=l7Xd8mkqWfc&t=268s
// Output an array as a string separated with the argument's contents.
myArray.join(", ")
// Outputs a string with elements separated by commas.
myArray.toString()