Skip to content

Instantly share code, notes, and snippets.

@longlivemikey longlivemikey/marker wiggle Secret
Created Apr 27, 2019

Embed
What would you like to do?
var wiggleSpeed=10;
var wiggleAmplitude=100;
var easeDur=20;
try{
if(time>=thisLayer.marker.nearestKey(time).time){
T=thisLayer.marker.nearestKey(time).index;
}else{
T=thisLayer.marker.nearestKey(time).index-1;
}
key1=thisLayer.marker.key(T)
if (key1.time<time && time<(key1.time+key1.duration)){
s=linear(time,key1.time,key1.time+(easeDur*thisComp.frameDuration),0,1);
ss=linear(time,(key1.time+key1.duration)-(easeDur*thisComp.frameDuration),(key1.time+key1.duration),1,0);
wiggle(wiggleSpeed,wiggleAmplitude*s*ss);
}else{
value;}
}catch(error) {
value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.