onsdag den 28. oktober 2009

time remap - Start layer ad first marker

//Paul Tuersley - Aenhancers.com

firstMarkTime = thisLayer.marker.key(1).time;
if (time >= firstMarkTime) {
time - firstMarkTime;
} else {
0;
}

Opacity - depentet of distance to camera

//Atomic - Aenhancers.com

camSource=thisComp.layer("Camera 1").position;
footSource=thisComp.layer(index).position;
minDist=1000;
maxDist=2500;
minBright=0;
maxBright=100;

distance=length(footSource,camSource);
darken=ease(distance,minDist,maxDist,maxBright,minBright);

torsdag den 15. oktober 2009

Wiggle - in 3D

//Wiggle i 3 diminsioner.

a=wiggle(3,25);
b=wiggle(2,10);
c=wiggle(1,180);
[a[0],b[1],c[2]]

Wiggle - Start or stop wiggle at specific time

//Start or stop wiggle at specific time

timeToStart = 2;
if (time > timeToStart){
wiggle(3,25);
}else{
value;
}

-----

timeToStop = 4;
if (time > timeToStop){
value;
}else{
wiggle(3,25);
}

-----

timeToStart = 2;
timeToStop = 4;

if ((time > timeToStart) && (time < timeToStop)){
wiggle(3,25);
}else{
value;
}

Position - Wiggle loop

//Wiggle loop

freq = .5;
amp = 20;
loopTime = 3;
t = time % loopTime;
wiggle1 = wiggle(freq, amp, 1, 0.5, t);
wiggle2 = wiggle(freq, amp, 1, 0.5, t - loopTime);
linear(t, 0, loopTime, wiggle1, wiggle2)

mandag den 12. oktober 2009

Position - Bounce 3

// Another bouncing effect.
//Atomic - aenhancers.com

maxDev = 122.20; // max deviation in pixels
spd = 8; //speed of oscillation
decay = 1.0; //how fast it slows down

t = time - inPoint;
x = position[0];
y = position[1];

//Apply v to the axis you want to modulate.
v = position[0] + maxDev*Math.sin(spd*t)/Math.exp(decay*t);
//y = position[0]*position[1]/v;

[v,y]

Start rotating when approaching a MARKER

//continue rotaning each MARKER
//lloydalvarez - aenhancers.com

f=5; //duration in frames of rotation, set to zero if you want it to click
d=20; //degrees to rotate


f=framesToTime(f, fps = 1.0 / thisComp.frameDuration);
n = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (time > marker.key(n).time && n < marker.numKeys){
n++;
}
r=(d*(n-1)) + value;
linear (time,marker.key(n).time-f,marker.key(n).time,r,r+d);
}


//oscillate rotation back and forth at MARKERS
//lloydalvarez on AE ENHANCERS.COM

f=5; //duration in frames of rotation, set to zero if you want it to click
d=20; //degrees to rotate

r=value;
f=framesToTime(f, fps = 1.0 / thisComp.frameDuration);
n = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (n%2) {d=d*-1; r=r-d;}
linear (time,marker.key(n).time-f,marker.key(n).time,r,r+d);
}



//And now with a wiggle

freq=24; //wiggle frequency in frames per second
s=0; //wiggle start amount
d=20; //amount to increase wiggle at each marker
f=15; //duration in frames of transition to next amount, set to zero if you want it to click

f=framesToTime(f, fps = 1.0 / thisComp.frameDuration);
n = value;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (time > marker.key(n).time && n < marker.numKeys){
n++;
}
r=(d*(n-1))+s;
a=linear (time,marker.key(n).time-f,marker.key(n).time,r,r+d);
wiggle(freq,a);

}

torsdag den 1. oktober 2009

Crummy clients previews. Make AVI

Quicktime.

(MAC and PCU) use Quicktime Pro, and export for web.
and you will get a nice clean and small film, ready for your client and you Iphone.

Windows Media.

(PC)
After Effects out put modul.
Export as Windows media video 9.

I usual use a 512*288 (16/9) version as source file.
AE POSTWORK blog is virtually just a notepad, where I put all the AE expressions up I finde and use, its so I can easily get to them wherever I am and no matter what computer I sit at. I do not write my own expressions, so all expressions on the page is downloaded from the web,or modify versions i found. and tutorials etc.. I will try to credit those who have made expressions if I can.

Now, with tips and tricks for AE & C4D.
No more forgetting the little tricks and tips I found on my road with After Effects, etc.

Sebabba