Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › blend or tween the points in the gaussrandom expression

  • blend or tween the points in the gaussrandom expression

    Posted by Nick Lavigne on May 6, 2021 at 4:30 am

    I am working on making some leaves move around in a scene. In order to get around doing this by hand I have paired the gaussRandom expression with the CC Bend it effect. However now the leaves tick from one bend position to the next. I am hoping to tween between the randomly generated bend values.

    Filip Vandueren replied 5 years, 4 months ago 2 Members · 1 Reply
  • 1 Reply
  • Filip Vandueren

    May 10, 2021 at 1:39 pm

    Hi Nick,

    maybe something like this:

    wps=3; // wiggles per second
    seedRandom(index,true);
    for (i=0; i<=time*wps; i++) {
    prevRandom=gaussRandom(-20,20);
    }
    nextRandom = gaussRandom(-20,20);
    ease(time%(1/wps), 0, 1/wps, prevRandom, nextRandom);

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