ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Clock widget confusion

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Nithish kumar
Re: Clock widget confusion
on May 7, 2020 at 10:04:00 am

Thank you soooooo much Robert and Dan for making me understand the logic behind it.

And I was ae to successfully set up the rog as I wanted. Now it can loop seamlessly based in comp duration.

The only thing is the no of cycles should be even to loop seamlessly....

Thank you guys again ....🥰🥰🥰


Here is the code

cyc =4; // should be even for a seamless loop
segDur = thisComp.duration/cyc;
rampDur = (segDur*0.5).toFixed(2);
t = time%segDur.toFixed(2);
seg = Math.floor(time/segDur);

deg = 180;

seg*deg+linear(t,rampDur,segDur,0,deg);

Nithish


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]