1Math.sin初階
//翅膀旋轉(zhuǎn) 左30度 右-30度
//左
value+Math.sin(time*30)*15
//右
value-Math.sin(time*30)*15
//轉(zhuǎn)圈 :路徑動(dòng)畫(huà)
loopOut("cycle");
//托尾 修建路徑
loopOut("cycle");
螢火蟲(chóng)(已轉(zhuǎn)換).gif
2Math.sin高階
//位移
x = value[0];
a = thisComp.layer("空 5").effect("滑塊控制")("滑塊");
f = thisComp.layer("空 5").effect("滑塊控制 2")("滑塊");
t = time-(index-1)*0.2 ;
y = Math.sin(t*2*Math.PI*f)*a;
[x,y+630]
//旋轉(zhuǎn)
a = thisComp.layer("空 5").effect("滑塊控制 3")("滑塊")
f = thisComp.layer("空 5").effect("滑塊控制 2")("滑塊");
t = time ;
y = Math.cos(t*2*Math.PI*f)*a;
y+90