Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Opacity Sine Rhythm

  • Dan Ebberts

    July 29, 2010 at 5:59 pm

    This should get you started:

    freq = 1; // 1 cycle per second
    50*(1 – Math.cos(freq*time*Math.PI*2))

    Dan

  • Navarro Parker

    August 28, 2014 at 8:45 pm

    Hey Dan,

    Would there be a way to get it to hang a smidge more at the peak and valley of the sine wave?

    It’s because of my transfer modes and contrast of the image, it’s not looking as graceful as I want. Looks somewhere between linear interpolation and sine.

  • Dan Ebberts

    August 28, 2014 at 9:19 pm

    You could add an ease to it like this:

    freq = 1; // 1 cycle per second
    val = 50*(1 – Math.cos(freq*time*Math.PI*2));
    ease(val,0,100,0,100)

    Dan

  • Navarro Parker

    August 29, 2014 at 1:41 am

    Great idea using Ease! Thanks Dan!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy