Created
August 9, 2012 17:35
-
-
Save ff6347/3306278 to your computer and use it in GitHub Desktop.
the wihihihiggle expression
This file contains hidden or 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
layer = thisComp.layer('whihihiggle_ctrl'); // <-- THE CONTROL LAYER | |
/* ------------------------------- */ | |
/* -----THE SLIDER CONTROLS------- */ | |
freq = layer.effect('freq')('ADBE Slider Control-0001'); | |
amp = layer.effect('amp')('ADBE Slider Control-0001'); | |
seed = layer.effect('seed')('ADBE Slider Control-0001'); | |
octaves = layer.effect('octaves')('ADBE Slider Control-0001'); | |
amp_mult = layer.effect('amp_mult')('ADBE Slider Control-0001'); | |
t = layer.effect('t')('ADBE Slider Control-0001'); | |
framesPerSecond = layer.effect('framesPerSecond')('ADBE Slider Control-0001'); | |
loopTime = layer.effect('loopTime')('ADBE Slider Control-0001'); | |
/* ------------------------------- */ | |
seedRandom(seed); | |
posterizeTime(framesPerSecond); // loop and posterize dont work together | |
wiggle(freq,amp,octaves,amp_mult,t);// use this normal wiggle | |
temporalWiggle(freq, amp, octaves, amp_mult, t); // or this temporal wiggle | |
// if you want to use the loop remove the temporal or normal wiggle above | |
/* ------------------------------- */ | |
// Thanx to Dan Ebberst | |
// Expressionieer's Designer Guide | |
// Looping wiggle() | |
// http://www.motionscript.com/design-guide/looping-wiggle.html | |
tLooped = t % loopTime; | |
wiggle1 = wiggle(freq, amp, octaves, amp_mult, tLooped); | |
wiggle2 = wiggle(freq, amp, octaves, amp_mult, tLooped - loopTime); | |
linear(tLooped, 0, loopTime, wiggle1, wiggle2); // | |
/* ------------------------------- */ | |
// created with whihihiggle script by fabiantheblind | |
// checkout --> http://fabiantheblind.info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment