LoginSignup
1
2

More than 3 years have passed since last update.

TextAnimation Expression selector エクスプレッション コピペ用

Last updated at Posted at 2020-04-20

thumbnail.jpg

詳しくは動画をご覧ください

動画は2020/04/24公開
https://www.youtube.com/watch?v=82MyU_21a3o

コピペ用エクスプレッション

In用

amp = 100; //バウンスの強さ
freq = 2; //バウンスの周波数
decay = 5;//バウンスの減衰
delay = .02;//文字毎の遅延設定
charaDelay = delay*(textIndex-1)//文字毎の遅延の値
t = (time - inPoint)-charaDelay; //文字毎の遅延の時間

if (t > 0){
    amp*Math.cos(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{
    100
}

Out用

NumChara = thisLayer.text.sourceText.length;
amp = 100; //バウンスの強さ
freq = 2; //バウンスの周波数
decay = 5;//バウンスの減衰
delay = .05;//文字毎の遅延設定
charaDelay = -delay*(textIndex-1)//文字毎の遅延の値
outTrigger = marker.key(1).time;
outTrigger = outTrigger+(NumChara*delay)-inPoint;
t = outTrigger-(time - inPoint)-charaDelay; //文字毎の遅延の時間

if (t > 0){
    amp*Math.cos(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{
    100
}

outをレイヤーのデュレーションで制御したい時は

こっちの方が使い勝手いいかも。

NumChar = thisLayer.text.sourceText.length;
dealy = .05;
amp = 100;
freq = 2;
decay = 5;
charDelay = -dealy*(textIndex);
outTrigger = outPoint-(NumChar*dealy)-inPoint;
t = outTrigger-(time - inPoint)-charDelay;

if ( t >= 0){
    result = amp*Math.cos(freq*t*2*Math.PI)/Math.exp(decay*t)
}else{
    100
}

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2