Re: Make a linear Loop by Eric Sanderson on May 26, 2009 at 4:56:33 pm
Im not sure how to alter your code to work but if its taking too much time to figure out i would just keyframe the fade up and back down over 3 seconds then "loopOut("cycle")" to get them to loop continuously.
Re: Make a linear Loop by Eric Sanderson on May 26, 2009 at 4:50:22 pm
It also looks to me like your just defining variables without actually executing them for anything, Your saying what startVal and end equals but not putting them to use, and actually giving the same variable different values. Im not an expression pro at all or anything so this could be a method im not aware of but thats the main problem i can see with the code.
Re: Make a linear Loop by Koby Goldberg on May 26, 2009 at 5:46:19 pm
Eric's idea is really nice and simple.
If you want to change the time that the opacity rises from 0 to 100 to a specific duration value, use the following expression:
Re: Make a linear Loop by Koby Goldberg on May 26, 2009 at 9:00:21 pm
Hi Eric,
No, this is not the same.
SIN(X) is also negative (in case piHowever (1-COS) is always positive.
p.s. you could check out the behaviour of the expression in the graph editor of AE (don't forget to press the small graph icon near the property name to see it in the graph editor)
Re: Make a linear Loop by Koby Goldberg on May 27, 2009 at 2:21:25 pm
You could also use the inPoint of the layer to choose the desired delay, in a way that if you move the layer in timeline to start later, the effect would start later.
In order to do this, you could use Dan's last expressions and just replace the delay to this: