Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Sine wave on effect parameter?

  • Sine wave on effect parameter?

    Posted by Patrick Murphy on January 30, 2013 at 3:37 am

    Hi there,

    On a tight deadline and looking to put an expression on an effect parameter (specifically the turbulent displacement’s evolution).

    I’m looking to have numbers bounce back and forth from 360 to -360 over a couple seconds, indefinitely. I’ve been playing around with Math.sine() but can’t seem to figure it out.

    Any help is much appreciated! Thank you!

    Xavier Gomez replied 13 years, 3 months ago 4 Members · 4 Replies
  • 4 Replies
  • Patrick Murphy

    January 30, 2013 at 4:09 am

    Btw, I ended up just using some keyframes and a loop expression but would still like to know if this is possible. Thx!

  • Vishesh Arora

    January 30, 2013 at 10:19 am

    Patrick

    You can use a Random Expression with a Slider Control attach to it.

    See the example :

    5339_usingrandomwithslider.zip

    Vishesh Arora
    3D and Motion Graphics Artist
    Films Rajendra

    Blog:
    https://digieffects.wordpress.com

    2011 3D Demo Reel:
    https://www.youtube.com/watch?v=lHPgIJU_BR8

  • Matthew Keane

    January 30, 2013 at 11:09 am

    Hi,

    The best resource for AE expressions is probably Dan Ebberts site:
    https://www.motionscript.com/

    You find lots of useful info there. Or there’s a similar thread here on the Cow that looks useful:
    https://forums.creativecow.net/thread/227/13225

    Matthew Keane

    Freelancer based in Paris, France
    – Motion Graphics, Video Editing & Effects, Watchout Programming & Live Operation.

  • Xavier Gomez

    January 30, 2013 at 3:32 pm


    amplitude = 360;
    period = 2;
    refTime = inPoint;

    amplitude * Math.sin(2*Math.PI*(time-refTime)/period);

    amplitude is the amplitude of oscillations, period is the duration of a cycle (in seconds), refTime is the time (in seconds) at which you want the oscillation to have 0 amplitude. Change these numbers according to your needs.

    Don’t enter a period of 0, this will generate an error.
    Note : the best suited forum for this kind of questions is the After Effects expressions forum…

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