LINX 發表於 2012-8-22 12:12:58

取得環繞的postion參數

rdLcCSGJXLs

方塊隨著棒子(轉動圖層) 轉動,
但以Link的方式,方塊的postion不會更新...
也就不能作設定分子發射點或其他用途的指定。

目前以下方這串表達式應急:
center=thisComp.layer("轉動圖層").transform.position;
radius=(thisComp.layer("轉動圖層").width + thisComp.layer("被環繞物").height)/4;
angle=thisComp.layer("轉動圖層").transform.rotation/58;
x=radius*Math.sin(angle);
y=-radius*Math.cos(angle);
add(center,);

至今仍感到疑惑的是angle,指定轉動圖層的rotation 除以 58 ...
58這數字是慢慢踹出來....應該有公式可以取得這數字才是?

或是有其他表達式,一樣也能取得postion呢?
麻煩了!




newhappy 發表於 2012-8-22 23:56:22

試看看唄~

LINX 發表於 2012-8-23 09:05:21

newhappy 發表於 2012-8-22 23:56 static/image/common/back.gif
試看看唄~

!原來如此~!好用阿這表達式!
謝謝newhappy的解答!

頁: [1]
查看完整版本: 取得環繞的postion參數