Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to edit this expression

  • Dan Ebberts

    November 22, 2020 at 2:44 pm

    Which expression is it?

  • Muhammad Mont

    November 22, 2020 at 2:45 pm

    Yes sorry here it is,

    minInt = 120;

    maxInt = 240;

    minAmp = 3;

    maxAmp = 7;

    minDur = 5;

    maxDur = 10;

    fade = .5;

    prev = next = inPoint;

    seedRandom(index,true);

    while (time >= next){

    prev = next;

    next += random(minInt,maxInt);

    }

    seedRandom(prev,true);

    amp = random(minAmp,maxAmp);

    dur = random(minDur,maxDur);

    w = wiggle(5,amp);

    t = time – prev;

    if (t < dur/2)

    ease(t,0,fade,value,w)

    else

    ease(t,dur-fade,dur,w,value);

  • Dan Ebberts

    November 22, 2020 at 3:53 pm

    I don’t see any jumping. What behavior are you looking for exactly?

  • Muhammad Mont

    November 22, 2020 at 4:10 pm

    I want object to travels on the screen x and y randomly with smooth movment

    And makes me control movment and hold duration

  • Dan Ebberts

    November 22, 2020 at 6:35 pm

    That’s still pretty vague. See what you think of this one:

    holdDur = .5;

    minDur = 1.0;

    maxDur = 1.5;

    seedRandom(index,true);

    tNext = tPrev = -random(minDur);

    while (tNext <= time){

    tPrev = tNext;

    tNext += random(minDur,maxDur);

    }

    vMin = [0,0];

    vMax = [thisComp.width,thisComp.height];

    seedRandom(tPrev,true);

    vPrev = random(vMin,vMax);

    seedRandom(tNext,true);

    vNext = random(vMin,vMax);

    ease(time,tPrev,tNext-holdDur,vPrev,vNext);

  • Muhammad Mont

    November 22, 2020 at 8:12 pm

    Yes its exactly what I want,

    Like screen saver movment in pc or No signal in lcds

    Thank you so Much Mr Dan

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