mandag den 25. februar 2013

One-sided layers

//found on :http://www.mographwiki.net/After_Effects_expressions_library
 
Apply this expression to the opacity attribute and it'll disappear 
whenever it's flipped away from the camera. You need to have an active 
camera in your composition for this one to work.
 
 
a = toWorldVec([0,0,1]);
b = thisComp.activeCamera.position - toWorld(anchorPoint);
c = dot(a,b)/length(b);
if (c > 0) 0 else value

Bouncy Scale In

 //found on : http://www.mographwiki.net/After_Effects_expressions_library

Apply this expression to the 'scale' parameter of your layer.

k=100; // final scale
a=5; // how quickly the bounce ends
b=20; // how many bounces it'll do (that is, the bounce speed)
x=k*(1-Math.exp(-a*time)*Math.cos(b*time));
[x,x]
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