- テキストレイヤーで「0000」と書く
- エフェクト&プリセットから「スライダー制御」を適用
- Altキーを押しながらテキストの「ソーステキスト」をクリック
- スクリプト(下記参照)を記載
- スライダー制御に時間を記載してキーフレーム
- カウントダウンを終わらせるところで再びキーフレーム
function padZero(n){ if (n < 10) return "0" + n; else return "" + n } t = Math.floor(effect("スライダー制御")("スライダー")); hr = Math.floor(t/3600); min = Math.floor((t%3600)/60); sec = Math.floor(t%60); /* delete the comment tags and put in one line to add hours padZero(hr)+":"+ */ padZero(min)+":"+padZero(sec) /* Script written by Josh Vickerson | https://twitter.com/joshvickerson */
二行目にエラーが出たらこっち。
if (n < 10) return “0” + n else return “” + n
コメントを残す