Wiggle is a cool little function in AfterEffects.
Clicking on the "transform parameter" select SHIFT+ALT "=", Animation > Add Expression. Then past this:
wiggle(.2,25)
The first value is the frequency, the second is the amount/change.
Showing posts with label motionscript. Show all posts
Showing posts with label motionscript. Show all posts
Wednesday, September 28, 2011
AfterEffect MotionScript - Random Scale
segMin = .75; //minimum segment duration
segMax = 1.25; //maximum segment duration
minVal = 5;
maxVal = 10;
end = 0;
j = 0;
while ( time >= end){
j += 1;
seedRandom(j,true);
start = end;
end += random(segMin,segMax);
}
s = random(minVal,maxVal);
endVal = [s,s];
seedRandom(j-1,true);
dummy=random(); //this is a throw-away value
s = random(minVal,maxVal);
startVal = [s,s]
ease(time,start,end,startVal,endVal)
segMax = 1.25; //maximum segment duration
minVal = 5;
maxVal = 10;
end = 0;
j = 0;
while ( time >= end){
j += 1;
seedRandom(j,true);
start = end;
end += random(segMin,segMax);
}
s = random(minVal,maxVal);
endVal = [s,s];
seedRandom(j-1,true);
dummy=random(); //this is a throw-away value
s = random(minVal,maxVal);
startVal = [s,s]
ease(time,start,end,startVal,endVal)
Subscribe to:
Posts (Atom)