Skip to content

Instantly share code, notes, and snippets.

@artwilton
Last active April 8, 2021 16:31
Show Gist options
  • Save artwilton/dd96172db14aa10180a002be9cff7765 to your computer and use it in GitHub Desktop.
Save artwilton/dd96172db14aa10180a002be9cff7765 to your computer and use it in GitHub Desktop.
Creative projects - common commands and syntax

After Effects:

Expressions

wiggle expression syntax:

wiggle(freq, amp, octaves=1, amp_mult=0.5, t=time);

Per Adobe Documentation:

freq value is the frequency in wiggles per second. amp value is the amplitude in units of the property to which it is applied. octaves is the number of octaves of noise to add together. This value controls how much detail is in the wiggle. Make this value higher than the default of 1 to include higher frequencies or lower to include amplitude harmonics in the wiggle. amp_mult is the amount that amp is multiplied by for each octave. This value controls how fast the harmonics drop off. The default is 0.5; make it closer to 1 to have the harmonics added at the same amplitude as the base frequency, or closer to 0 to add in less detail. t is the base start time. This value defaults to the current time. Use this parameter if you want the output to be a wiggle of the property value sampled at a different time.

Keeping the same seed value for wiggle:

seedRandom(1, true);


GIFs

Converting file to a GIF and compressing using imagemagick and gifsicle:

convert -delay 4 <source> -loop 0 +dither -layers OptimizePlus "${@:3}" gif:- | gifsicle -O3 --dither --lossy=30 --resize-width 640 -V -o <output>.gif

24fps or 25fps - use -delay 4 30 fps - use -delay 3

change --lossy value from 0 to 100 for less or more compression respectively

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment