top of page

Expressions for daily usage

  • Admin
  • Jan 12, 2019
  • 1 min read

••• Offset for Trim Path Start (can be used for creating animationg on paths):

thisProperty.propertyGroup(1).end.valueAtTime(time-thisComp.frameDuration*2)-0.01

••• Fading oscillations (no comments here):

amp = 0.1; freq = 2; decay = 6.0; val = value; n = 0;

if(numKeys>0){n=nearestKey(time).index;

if(key(n).time>time)n--} if(n==0)t=0 else t=time-key(n).time;

if(n>0){v=velocityAtTime(key(n).time-thisComp.frameDuration/10); try{val+v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t)}catch(e){val}}else val;

 
 
 

Comments


bottom of page