>即時新聞-熱門

2010年12月9日星期四

after effect 定位 express

表達式設計(定位)


1 File (功能表)/ new(新增) / project(專案)

2 Composition(合成) / new Composition(新增合成)

3設定尺寸 , 影格 , 規格 / 確定 ( ntsc 320x 240 , 00:00:8:00)

4 File (功能表) / import (匯入) / file (影片檔案)

5 取您需求的檔案格式 / open (開啟) / 快速鍵CTRL + I(檔案尺寸320*240)

6 將影片拖曳至時間軸 / 按 P 鍵(設定POSITION位置)

7 點選 ANIMATION(動畫) / ADD EXPRESSION(表示式) , 快速鍵 : SHIFT + ALT + =

8 輸入表示式的內容 : [(thisComp.width/2),(thisComp.height/2)]+[Math.sin(time)*80,Math.cos(time)*30]

Width : 寬度 height : 高度 math : 函數 sin:正弦 cos : 餘弦

也可以這樣寫

x = random(thisComp.width);

y = random(thisComp.height);

[x,y]

或是這樣寫

x = random()*thisComp.width;

y = random()*thisComp.height;

[x,y]

說明 : 大小寫有規定

表達式設計一(亂數定位)

1 File (功能表)/ new(新增) / project(專案)

2 Composition(合成) / new Composition(新增合成)

3設定尺寸 , 影格 , 規格 / 確定 ( ntsc 320x 240 , 00:00:8:00)

4 File (功能表) / import (匯入) / file (影片檔案)

5 取您需求的檔案格式 / open (開啟) / 快速鍵CTRL + I(檔案尺寸320*240)

6 將影片拖曳至時間軸 / 按 P 鍵(設定POSITION位置)

7 點選 ANIMATION(動畫) / ADD EXPRESSION(表示式) , 快速鍵 : SHIFT + ALT + =

8 輸入表示式的內容 :

holdTime = 1; // 停留位置時間

seed = Math.floor(time/holdTime);

seedRandom(seed,true);

random([thisComp.width, thisComp.height])

seedRandom() : 隨機函數 random(0,720)系統亂數 Math.floor 數學整數

說明 : 大小寫有規定

0 评论:

 
妹咕數位學園歡迎網友們來信指教 妹咕信箱