Skip to content

Instantly share code, notes, and snippets.

🎯
Animating!

Animoplex animoplex

🎯
Animating!
Block or report user

Report or block animoplex

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@animoplex
animoplex / CheckboxExpressionLink.jsx
Last active Apr 11, 2018
Checkbox Expression Link - After Effects Expression by Animoplex
View CheckboxExpressionLink.jsx
@animoplex
animoplex / ChangePropertyFPS.jsx
Last active Apr 11, 2018
Change Property FPS - After Effects Expression by Animoplex
View ChangePropertyFPS.jsx
// Change Property FPS - Created by Animoplex: www.animoplex.com
// Gives you control of how keyframes per second are interpolated across two or more keyframes.
// Change the fps value on the first line to your desired FPS.
// Full Tutorial: https://www.youtube.com/watch?v=YLapbNyYxLs&t=257s
fps = 15;
posterizeTime(fps);
valueAtTime(time);
@animoplex
animoplex / SampleLumaValue.jsx
Last active Apr 11, 2018
Sample Luminance Value - After Effects Expression by Animoplex
View SampleLumaValue.jsx
// Sample Luminance Value - Created by Animoplex: www.animoplex.com
// Samples the luma value of a defined area and converts to a specified value within a range.
// Use samplePoint to specify luma location
// Use sampleSize to adjust the sample area
// Last line: 0 - 1 is input, 0 - 100 is output
// Full Tutorial: https://www.youtube.com/watch?v=QkqiaPZJa1Y&t=62s
target = comp("SOURCE COMP").layer("SOURCE LAYER");
samplePoint= [960,540]; // Sample location
sampleSize= [50,50]; // Sample area (in pixels)
@animoplex
animoplex / LayerNameSubstring.jsx
Last active Apr 11, 2018
Output Layer Name As Substring - After Effects Expression by Animoplex
View LayerNameSubstring.jsx
// 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);
@animoplex
animoplex / CountdownClock.jsx
Last active Apr 11, 2018
Countdown Clock - After Effects Expression by Animoplex
View CountdownClock.jsx
// Countdown Clock
// Original: http://www.motionscript.com/design-guide/up-down-clock.html
rate = -1;
clockStart = 3.00;
sign = "";
function padZero(n) {
if (n < 10) {
return "0" + n
}
@animoplex
animoplex / DistanceBasedOpacityFade.jsx
Last active Apr 11, 2018
Distance Based Opacity Fade - After Effects Expression by Animoplex
View DistanceBasedOpacityFade.jsx
// 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;
@animoplex
animoplex / DelayedOffset.jsx
Last active Apr 11, 2018
Delayed Offset - After Effects Expression by Animoplex
View DelayedOffset.jsx
// Delayed Offset - Created by Animoplex: www.animoplex.com
// Delays an animation based on the layer above and the frames to delay.
// NOTE: Looks for an identical transform property on the layer above.
// NOTE: To change, replace "transform(thisProperty.name)" with your desired effect.
delay = 10; // Frames To Delay
above = thisComp.layer(index - 1).transform(thisProperty.name);
above.valueAtTime(time - framesToTime(delay))
@animoplex
animoplex / AutoFadeOpacity.jsx
Last active Apr 12, 2018
Auto Fade Opacity - After Effects Expression by Animoplex
View AutoFadeOpacity.jsx
// Auto Fade Opacity - Created by Animoplex: www.animoplex.com
// Automatically fades a layer in and out based on the inPoint and outPoint of the layer.
// Full Tutorial: https://www.youtube.com/watch?v=BOPfs49VfLE&t=188s
fade = 1; // fade duration in seconds
fadeIn = (time - inPoint) / fade;
fadeOut = (outPoint - time) / fade;
if (time < inPoint + fade) {
ease(fadeIn, 0, 1) * value;
} else if (time > outPoint - fade) {
@animoplex
animoplex / EvaluateExternalFile.jsx
Last active Apr 12, 2018
Evaluate External File - After Effects Expression by Animoplex
View EvaluateExternalFile.jsx
// Evaluate External File - Created by Animoplex: www.animoplex.com
// Read and execute an expression from an external file.
// Full Tutorial: https://www.youtube.com/watch?v=Wkr_XOpsAFU&t=266s
myPath = "/D/Users/animoplex/Downloads/Expression.txt";
$.evalFile(myPath);
// Note: Quotation marks in this file must be straight quotes, not curly quotes.
@animoplex
animoplex / DashesCircleStroke.jsx
Last active Apr 12, 2018
Fixed Dashes Around Circle Stroke - After Effects Expression by Animoplex
View DashesCircleStroke.jsx
// Fixed Dashes Around Circle Stroke - Created by Animoplex: www.animoplex.com
// Apply this to a Ellipse shape layer's Stroke Dash property.
// Full Tutorial: https://www.youtube.com/watch?v=I-Acdl_l9G0&t=562s
src = effect("Slider Control")("Slider");
rad = content("Ellipse").content("Ellipse Path").size[0] / 2;
gap = content("Ellipse").content("Stroke").dash.gap;
seg = src <= 0 ? 1 : src;
2 * Math.PI * rad / seg - gap
You can’t perform that action at this time.