CC

CG study (After Effects, Nuke, Maya...), English study and more.

Sunday, May 3, 2009

[After Effects]-expression01

"X="+position[0]+"Y="+position[1]+"Z="+position[2]
----------------------------------------------------
lookAt(thisComp.layer("target layer name").position,position)
----------------------------------------------------
//Paint>Clone(n)>Stroke Options>Clone Position
motionTracker("Tracker 1")("Track Point 1").attachPoint

//Paint>Clone(n)>Sransform:Clone(n)>Position
motionTracker("Tracker 1")("Track Point 1").featureCenter
----------------------------------------------------
loopOut("cycle")
----------------------------------------------------
loopOut("cycle",1)//cycle last 2 keyframes
----------------------------------------------------
loopOut("continue")
----------------------------------------------------
loopOut("pingpong")
----------------------------------------------------
firstKey = key(1).time;
endKey = key(numKeys).time;
if (time <> endKey) loopOut("cycle") else value;
----------------------------------------------------
//sin animation
n = time * 4;
x = position[0];
y = 120 + Math.sin(n) * 80;
z = position[2];
[x,y,z];
----------------------------------------------------
//Color control
thisComp.layer("ColorCon").effect("Color Control")("Color")
----------------------------------------------------
position+[10,10]
----------------------------------------------------
thisComp.width/2,thisComp.height/2
----------------------------------------------------
//smoother
smooth(width = .2, samples = 5, t = time)
----------------------------------------------------
//Time Remap
thisComp.duration-(index / (1 / thisComp.frameDuration))
//Opacity
index*100/thisComp.numLayers
----------------------------------------------------
ease(time,0,1, 0, 1)//ease(t, tMin, tMax, value1, value2)
----------------------------------------------------
//Trigger(ex.Level)
this_comp.layer("layer name").scale.value_at_time(time-2)
----------------------------------------------------
//Trigger(ex.Level)
this_comp.layer(this_layer, -1).position.value_at_time(time - .5)
----------------------------------------------------
//Trigger(ex.Opacity)
mark = marker.key(1).time; //the time at which the first layer marker appears
linear(time, mark, mark+1, 100, 0)

No comments:

Post a Comment