AE常用表達示
Expressions
Horizon 地平線:? 做星空、天空、地平線
Z軸偏移,同理可做x、y偏移
(1)
z = index*thisComp.layer("Null 1").effect("Z")("Slider");
value + [0,0,z]
(2)
x=value[0];
y=value[1];
z=thisComp.layer("Null 7").effect("Slider Control")("Slider")*index;
[x,y,z]
無限地面
地面層鏈接相機(動態(tài)拼貼)
拼貼中心
x=value[0];
y=thisComp.layer("相機控制").transform.position[2];
[x,y]
數(shù)值偏移
? \\表達示*引索
? 表達示*(計算符號)index
s = wiggle(0,0)[0];
\\wiggle返回值是一個數(shù)組
[0]取數(shù)組第一個數(shù)值
[1]取數(shù)組第二個數(shù)值
?
effect---time
---CC Force Motion Blur
---Pixel Motion Blur
特效---時間
---CC力運動模糊
---像素運動模糊
數(shù)字從1980開始,每秒遞增2
1980+Math.floor(time*2)
5到8秒內(nèi),數(shù)字從1980到1990自動變化(只能整數(shù))
Math.floor(linear(time,5,8,1980,1990))
Math.floor() 返回小于或等于一個給定數(shù)字的最大整數(shù)
可以理解 Math.floor()為向下取整
Math.abs(x) 函數(shù)返回指定數(shù)字 “x“ 的絕對值
數(shù)字增長:在5-7秒,數(shù)字從20升到104.40(toFixed(2)精確小數(shù)字點后幾位)
t=time;
linear(t,5,7,20,104.40);
t=time;
linear(t,5,7,20,104.40).toFixed(2)
隨機數(shù)字:random(20000000000000).toFixed(0)
在文字層上加滑塊控制效果,K幀做文字變化
偽三維攝像機推拉核心:三維圖層縮放至合成大?。?br>camZoom = 426.6666; distance = position[2] + camZoom; scale * (distance / camZoom);
景深=攝像機景深數(shù)值;距離=Z軸位置+景深;縮放*(距離/景深)
y軸歸0
x=value[0];
y=0;
z=value[2];
[x,y,z]
隨機生成表達式??????? seedRandom(1為隨機靜止、0為一直隨機變化,數(shù)字隨意):
seedRandom(1,1);
s=random(0,100);
[s,s]
seedRandom(1,1);
random(0,100);