Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects random movement with pause after every move

  • random movement with pause after every move

    Posted by Erik Bartos on March 18, 2022 at 7:44 am

    Hello

    I would like to use random pos. expression for the movement.

    But instead of continuous movement id like to wait certain time to wait after each movement.

    I found this beautiful script, but cant figure out how to add there wait after each move:

    segMin = .3; //minimum segment duration
    segMax = .7; //maximum segment duration
    minVal = [0.1*thisComp.width, 0.1*thisComp.height];
    maxVal = [0.9*thisComp.width, 0.9*thisComp.height];
    
    seedRandom(index,true);
    segDur = random(segMin, segMax);
    seed = Math.floor(time/segDur);
    segStart = seed*segDur;
    seedRandom(seed,true);
    startVal =  random(minVal,maxVal);
    seedRandom(seed+1,true);
    endVal = random(minVal,maxVal);
    ease(time,segStart,segStart + segDur, startVal, endVal);

    motionscript.com

    thanks for help

    Graham Quince replied 4 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Graham Quince

    March 23, 2022 at 10:44 am

    That’s a little above me, but if you post in the Expressions forum, you might get some help there.

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