查看: 3408|回覆: 2
收起左側

[求助] 取得環繞的postion參數

[複製連結]

發表於 2012-8-22 12:12:58 | 顯示全部樓層 |閱讀模式

馬上註冊,結交更多好友,享用更多功能,讓你輕鬆玩轉社區。

您需要 登錄 才可以下載或查看,沒有賬號?註冊

x


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

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

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

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





發表於 2012-8-22 23:56:22 | 顯示全部樓層
試看看唄~
to linx.jpg
回覆

使用道具 舉報


 樓主| 發表於 2012-8-23 09:05:21 | 顯示全部樓層
newhappy 發表於 2012-8-22 23:56
試看看唄~

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

回覆

使用道具 舉報

您需要登錄後才可以回文 登入 | 註冊

本版積分規則

熱門推薦

StormAudio ISR Fusion 20:力量、精準與聽覺新典範—Thrillcat Cinema Lab
StormAudio ISR Fusion 20
StormAudio ISR Fusion 20:力量、精準與聽覺新典範—Thrillcat
Barefoot Sound Footprint03:最先進的錄音室監聽進化之作
Barefoot Sound Footprint
Barefoot Sound Footprint03:最先進的錄音室監聽進化之作—Swee
MadVR Experience Center 家庭劇院導覽:瘋狂的11.11.6 聲道的沉浸體驗
MadVR Experience Center
MadVR Experience Center 家庭劇院專訪:瘋狂的11.11.6 聲道的沉
規格總覽|Barefoot Sound Footprint01 與 Footprint02 第二代錄音室監聽揚聲器—Vintage King
規格總覽|Barefoot Sound
規格總覽|Barefoot Sound Footprint01 與 Footprint02 第二代錄
寬敞,明亮,面面俱到!新竹Storm Audio風暴/Ken Kreisel為全家人打造的8.2.2.4雙中置客廳劇院溫馨開箱~
寬敞,明亮,面面俱到!新
寬敞,明亮,面面俱到!新竹Storm Audio風暴/Ken Kreisel為全家

聯絡我們| 問題反映| 小黑屋| 手機版| Archiver|  本網站特別聘請 蔡家豪律師 為本站法律顧問

快速回覆 返回頂部 返回列表