-
Stop loopOut smoothly?
Hi guys!
Once again I need a little help please: I’m trying to stop the loopOut- and wiggle-expressions at a specified time, but smoothly! I don’t want the values to suddenly jump back at the default values from one frame to another when the specified time has been reached!
For the wiggle expression I finally accomplished it with the first code below and animating the amp-slider to zero, when I want the animation to stop. But here too I would be happy about an expression which works without keyframing a slider!
But for the loopOut-thing I’m stuck! The code I’m using right now is the second one below. It works, but the thing I’m using it on is the puppet-tool-position for character-animation and – needless to say – it doesn’t look good, when all the puppet-pins jump back over big distances from one frame to another! What expression can I use, to smoothly move all the puppet-pins to their default values at a specified time, no matter which position-values they have at this time?Many thanks in advance,
Klemensfreq = thisComp.layer("SLIDER CONTROL").effect("Slider Control FREQ")("Slider")
amp = thisComp.layer("SLIDER CONTROL").effect("Slider Control AMP")("Slider")
wiggle(freq, amp)t = thisComp.layer("SLIDER CONTROL").effect("Slider Control TIME")("Slider")
if (time < t)
loopOut()
else
value