-
How do I get a loopout to stop after a certain value?
I have a shape layer that has a trim paths with a loopout expression. I want to animate the shape layer in such a way that once the playhead has passed the second to last keyframe in another layer, the trim paths will continue looping until it reaches 0 again, at which point I want the opacity of the layer to become 0 and stay at 0.
I cannot figure out how to get the opacity to become 0 only after the second to last keyframe in another layer and after the trim paths has also become 0.
</p><p>key1 = (thisComp.layer("Control").effect("Slider Control")("Slider").numKeys-1);</p><p><br></p><p>keyTime = thisComp.layer("Control").effect("Slider Control")("Slider").key(key1).time;</p><p><br></p><p>endStroke = thisComp.layer("Rotating Lines").content("Trim Paths 1").end;</p><p><br></p><p>if ((time>=keyTime)&&(endStroke=0)){</p><p><br></p><p> 0;</p><p><br></p><p>}else{</p><p><br></p><p> 100;</p><p>} </p><p><br></p><p>