チュートリアル
成果物
ポイント
atan2

- スターを見続けるエクスプレッション
you=thisComp.layer("Shape Layer 2").transform.position;
me=transform.position;
y=you[1]-me[1];
x=you[0]-me[0];
radiansToDegrees(Math.atan2(y,x));
PistonRig
- 親子関係をつくるときにshiftを押すことでオフセットを0にして配置

- 三平方の定理とarcTangent

- armのローテーションのエクスプレッション
l=content("Rectangle 1").content("Rectangle Path 1").size[0];
w=thisComp.layer("Wheel").transform.position[0]-transform.position[0];
h=Math.sqrt(l*l-w*w);
radiansToDegrees(Math.atan2(-h,w));感想
- 数学で攻めるこの人の講座は面白い!


コメント