Activity › Forums › Adobe After Effects Expressions › Randomly loading Progress Bar
-
Randomly loading Progress Bar
Posted by Mikhail Vasilev on January 20, 2016 at 8:09 amHi
I would like to create a progress bar but with random loading speed(without keyframes)
Is there any Ideas ? )
Mikhail Vasilev replied 10 years, 3 months ago 1 Member · 4 Replies -
4 Replies
-
Mikhail Vasilev
January 20, 2016 at 8:19 amAnd I also would like to have a random time hold option(for more randomness)
-
Mikhail Vasilev
January 23, 2016 at 10:59 amAlmost 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 durationnPF=[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 effectstart = 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 valueease(time,start,end,nP,nPF) // ease(time,start,end-2,nP,nPF)
-
Mikhail Vasilev
January 23, 2016 at 11:12 amStopped but jumps at the end.
segMin = .1; //minimum segment duration
segMax = 2; //maximum segment durationnPF=[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 effectstart = 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]
}
Reply to this Discussion! Login or Sign Up