レイヤーを円運動させる

動作バージョン 【 5.0 】

Expression x = Math.sin(n) * 50;
y = -Math.cos(n) * 50;
説  明 レイヤーを円運動させるにはJavaScriptの基本オブジェクトであるMathオブジェクトのsin(),cos()メソッドを使います。sin(),cos()の引数はラジアンとなります。
サンプル n = time * 4;
cx = this_comp.width / 2;
cy = this_comp.height / 2;
x = Math.sin(n) * 50;
y = -Math.cos(n) * 50;
add([cx,cy],[x,y]);

補足説明 なし

■サンプルをダウンロードする >>Download (Mac)(Win/Zip圧縮)
■サンプルムービーを見る >>View Movie