Question
Expression Help: Running Expression after Keyframes
Hey,
Whats the best way to adapt Dans oscillation script to run it after 2 keyframes that change opacity from 0-100 (basically making layer appear then oscillate opacity). Just been using a separate Transform currently but wondered if there was a way to run an expression only after the last keyframe?
//Dan's Oscillation Script
minVal = 20;
maxVal = 100;
freq = 1; // oscillations per second
avgVal = (minVal + maxVal)/2;
amp = (maxVal - minVal)/2
avgVal + amp*(Math.sin(time*freq*Math.PI*2))