Forum Replies Created

Page 2 of 3
  • Mikhail Vasilev

    January 23, 2016 at 11:12 am in reply to: Randomly loading Progress Bar

    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]

    }

  • Mikhail Vasilev

    January 23, 2016 at 11:10 am in reply to: Randomly loading Progress Bar

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

  • Mikhail Vasilev

    January 23, 2016 at 10:59 am in reply to: Accumulative Rotation With Random Time

    DONE!!!
    See my thread about random progress bar.

  • Mikhail Vasilev

    January 23, 2016 at 10:59 am in reply to: Randomly loading Progress Bar

    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 21, 2016 at 11:44 am in reply to: Move layer x pixels every nn frames

    Hi Dan.
    And how about random time and distance intervals ?
    And smooth(ease) movement? : )

  • Mikhail Vasilev

    January 20, 2016 at 8:19 am in reply to: Randomly loading Progress Bar

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

  • I’ve found some solution but now it works without ease )
    It jumps.

    segMin = .1; //minimum segment duration
    segMax = 1; //maximum segment duration
    minVal = [0, 10];
    maxVal = [0, 100];
    accum = 0; //initialize random accumulator

    end = 0;
    j = 0;
    while ( time >= end){
    accum += 15//random(10);
    j += thisComp.frameDuration;
    seedRandom(j,true);
    start = end;
    end += random(segMin,segMax);
    }
    endVal = random(minVal,maxVal)+accum;
    seedRandom(j-1,true);
    dummy=random(); //this is a throw-away value
    startVal = random(minVal,maxVal);
    ease(time,start,end,startVal,endVal)
    value+accum

  • Thanks, Kalle.
    It optimized my scene a lot because I have many elements with this expression.

  • Big big Thanks again Kalle. It works. That’s exactly what I need.

    But I use this settings for both(Null, and main follower):
    samples =70;
    timeframe = 1;
    delay = .5;

    Thanks again.
    And Happy New 2016 Year !!!

  • Thank you very very much Kalle : )
    It works perfectly.

    But is there any opportunity to add some ease effect to the motion?

Page 2 of 3

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