Skip to content

Instantly share code, notes, and snippets.

View Volorf's full-sized avatar
👽

Oleg Frolov Volorf

👽
View GitHub Profile
@Volorf
Volorf / delay_expression_ae.js
Created September 24, 2019 05:37
AE Delay Expression
// Don't forget to assing parent to a layer with the expression
delay = .1;
parent.fromWorld(toWorld(anchorPoint,time-delay))
@Volorf
Volorf / looping_wiggle_ae.js
Created September 23, 2019 11:15
Looping wiggle() for After Effects
// Source — https://www.motionscript.com/design-guide/looping-wiggle.html
freq = 1;
amp = 100;
loopTime = 3; // Set loop time for 3 sec.
t = time % loopTime;
wiggle1 = wiggle(freq, amp, 1, 0.5, t);
wiggle2 = wiggle(freq, amp, 1, 0.5, t - loopTime);
linear(t, 0, loopTime, wiggle1, wiggle2)
@Volorf
Volorf / counter.js
Last active September 23, 2019 11:39
Counter for After Effects
// Initial and last frames of an animation.
var startKeyFrame = 30;
var endKeyFrame = 50;
// Initial and final values of a text layer.
var startValue = 500;
var endValue = 1000;
// Util vars for a calc function
var currentFrame = time/thisComp.frameDuration,
deltaKeyFrames = endKeyFrame - startKeyFrame,