Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Randomly loading Progress Bar

  • Mikhail Vasilev

    January 20, 2016 at 8:19 am

    And I also would like to have a random time hold option(for more randomness)

  • Mikhail Vasilev

    January 23, 2016 at 10:59 am

    Almost Done )))

    The Code is for a random movement with random time but I think it is easy to implement it to the scale.

    Thanks Dan for start expression !!

    segMin = .1; //minimum segment duration
    segMax = 2; //maximum segment duration

    nPF=[200,0];// 200 coz we need to start from place

    end = 0;// growing with every cycle
    j = 0;

    while ( time >= end){
    seedRandom(j,true);// delete jumping while random updating
    j += random(1,30);

    nP=nPF;
    nPF=[200,0+j]; // only j gives effect

    start = end; //set start for ease but next will add value to end so we going with steps
    end += random(segMin,segMax);

    }
    //seedRandom(j-50,true);
    //dummy=random(); //this is a throw-away value

    ease(time,start,end,nP,nPF) // ease(time,start,end-2,nP,nPF)

  • Mikhail Vasilev

    January 23, 2016 at 11:10 am

    But now I can’t realize how to stop this stuff ))

  • Mikhail Vasilev

    January 23, 2016 at 11:12 am

    Stopped but jumps at the end.

    segMin = .1; //minimum segment duration
    segMax = 2; //maximum segment duration

    nPF=[0,25];
    end = 0;// growing with every cycle
    j = 0;

    while ( time >= end){
    seedRandom(j,true);// delete jumping while random updating
    j += random(1,30);

    nP=nPF;
    nPF=[0+j,25]; // only j gives effect

    start = end; //set start for ease but next will add value to end so we going with steps
    end += random(segMin,segMax);

    }
    if (nPF[0]<=100) {
    ease(time,start,end,nP,nPF) // ease(time,start,end-2,nP,nPF)
    }
    else
    {

    [100,25]

    }

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