mandag den 23. november 2009

AE - If Expression and Chek box effect.

Dammit... have to reinstall my After effect, and all my plugins.
my serial stoped working today.. mabye my timemachine can help !?

lets try..

didn work.. argh, have to get my copy of CS3 ad work then...(hmmm CS4 might miss you, CS5 is just around the corner).

back to bussines...

if (thisComp.layer("Null 1").effect("checkbox control")("Checkbox")==0)Opacity=0
if (thisComp.layer("Null 1").effect("checkbox control")("Checkbox")==1)Opacity=100

so.. there is a checkbox effect on layer "null 1" and it controles the opacity.
and i belive you also can use > < instead of = in the if expression.

i better try this out tommorow. (and get som spell cheking on this as well.. lol)

mandag den 16. november 2009

Inmprt C4D into AE (after Effects)

Just in case you forget you brain some where sebabba... here is how to import C4D into After effects.

http://greyscalegorilla.com/blog/2009/10/how-to-export-your-scene-from-cinema-4d-to-after-effects/

Thanks GrayScaleGorilla

torsdag den 5. november 2009

2D o 3D - toComp

//graymachine.com


The idea is that you can apply the equivalent 3D location to any 2D location. This might not sound exciting. But, think of all the 2D parameters out there, like lens flare location, Shine source, beams, etc. It is probably my most commonly used expression.

But, the basic idea is this:

layer = thisComp.layer("Null 1")
layer.toComp([0,0,0])

Note: I intentionally left off the semicolon, as you techinically don’t need it in this case. Therefore, all you need to do is pickwhip your layer where the “layer =” variable is.javascript:void(0)

AE - Position - Y Axis Jitter

//graymachine.com - Y Axis Jitter

This is from Lesson 5 of my expressions series. This creates a random jittery motion in the Y axis. You can modify probability to make or less jitter, and the pos variable to define how large the jitter is.

// Y Axis Jitter
probability = 8 ; //higher is less likely
pos = 50;

val = random(-probability-2, 1);
m = clamp(val, 0, 1);
y = wiggle(10, pos*m)-position;
value + [0, y[1]]

Opacity - Snap Zoom In/Out

//graymachine.com - Snap Zoom In/Out

This is a cool expression to use on text. It creates a “snap” zoom on the in and out of the layer by modifying scale.

//Snap zoom in and out: apply to scale
snapScale = 300; //percent of scale to zoom

trans = 4; // transition time in frames
trans = trans * thisComp.frameDuration;
inTrans = easeOut(time, inPoint, inPoint + trans, [snapScale,snapScale], [0,0]);
outTrans = easeIn(time, outPoint, outPoint - trans, [0,0], [snapScale, snapScale]);
value+ inTrans + outTrans

If you prefer to use Z space position instead of scale, try this one:

zoom = 5000; //distance to zoom
trans = 4; // transition time in frames
trans = trans * thisComp.frameDuration;

inTrans = easeIn(time, inPoint, inPoint + trans, [0,0,zoom], [0,0,0]);
outTrans = easeOut(time, outPoint, outPoint - trans*2, [0,0,0], [0,0,zoom]);
value+ inTrans - outTrans

Opacity - Add to opacity

//Found ad graymachine.com
//Autofade: Add to opacity

transition = 50; // transition time in frames
if (marker.numKeys<2){
tSecs = transition / ( 1 / thisComp.frameDuration); // convert to seconds
linear(time, inPoint, inPoint + tSecs, 0, 40) - linear(time, outPoint - tSecs, outPoint, 0, 100)
}else{
linear(time, inPoint, marker.key(1).time, 0, 100) - linear(time, marker.key(2).time, outPoint, 0, 100)
}

Position-Scale-Rotate - the mother of Bounce

//made by Dan Ebberts - mograph.net
//tweaked by graymachine.com

amp = .1;
freq = 2.0;
decay = 2.0;

n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time){
n--;
}}

if (n == 0){ t = 0;
}else{
t = time - key(n).time;
}

if (n > 0){
v = velocityAtTime(key(n).time - thisComp.frameDuration/10);
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{value}
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