ae彈性表達式怎么添加?ae做效果的時候,想要通過表達式來實現,該怎么輸入彈性表達式呢?下面我們就來看看Ae輸入彈性表達式的技巧
第一步:打開Ae工程。文章源自四五設計網-http://www.wasochina.com/37469.html
文章源自四五設計網-http://www.wasochina.com/37469.html
第二步:給圖層K完運動關鍵幀。(位置、大小、旋轉等都可以)文章源自四五設計網-http://www.wasochina.com/37469.html
文章源自四五設計網-http://www.wasochina.com/37469.html
第三步:給運動屬性加表達式,按住Alt鍵,鼠標左鍵單擊屬性前小秒表。文章源自四五設計網-http://www.wasochina.com/37469.html
文章源自四五設計網-http://www.wasochina.com/37469.html
第四步:在右側框內輸入萬能彈性表達式。文章源自四五設計網-http://www.wasochina.com/37469.html
freq = 6; decay = 4; n = 0; if (numKeys > 0){ n = nearestKey(time).index; if (key(n).time > time){ n--; } } if (n > 0){ t = time - key(n).time; amp = velocityAtTime(key(n).time - thisComp.frameDuration/20); w = freq*Math.PI*2; value + amp*(Math.sin(t*w)/Math.exp(decay*t)/w); } else { value; }
文章源自四五設計網-http://www.wasochina.com/37469.html
表達式中freq意思是設置頻率,表示一秒鐘彈動的次數;decay意思是衰減,修改參數可以調整彈跳結束時長;根據動畫效果需求,一般修改這兩個數值來調整就可以了。文章源自四五設計網-http://www.wasochina.com/37469.html
第四步:播放動畫,就會出現彈跳效果,可以看第三步修改參數到你滿意為止。文章源自四五設計網-http://www.wasochina.com/37469.html
以上就是Ae輸入彈性表達式的技巧,希望大家喜歡,請繼續關注四五設計網。


評論