Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions random rotation ease?

  • random rotation ease?

    Posted by Shirak Agresta on October 27, 2008 at 11:05 pm

    So I had cobbled together this expression to start a random rotation between two parameters (degrees) to start after a specific time.

    minDegrees = -36;
    maxDegrees = 15;
    timeToStart = 21.5;

    if (time > timeToStart){
    random (minDegrees,maxDegrees)
    }else{
    value;
    }

    Since (as I understand it) the randomness takes place between every frame, it happens really quickly. How could I slow down the randomness, “ease” between the random values. In essence, instead of it happening every frame, how about every 2 or 3 frames?

    Thanks.

    Julius Caesar and the Roman Empire couldn’t conquer the blue sky.

    Dan Ebberts replied 17 years, 6 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    October 28, 2008 at 12:50 am

    Just add this as the first line of your expression:

    posterizeTime(10);

    Adjust the parameter to the rate (frames per second) you want the value to change.

    Dan

  • Shirak Agresta

    October 28, 2008 at 3:23 am

    So not to be dense, but do I put it all the way at the top or right above the if/else statement?

    I’m slowly getting the gist of expressions basics, so thanks for all the help!

    Julius Caesar and the Roman Empire couldn’t conquer the blue sky.

  • Dan Ebberts

    October 28, 2008 at 3:27 am

    Either should work fine, but I’d put it at the top.

    Dan

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