Last active
August 29, 2015 13:56
-
-
Save baku89/9339825 to your computer and use it in GitHub Desktop.
プレゼン映像のタイトルや吹き出し・矢印など、繰り返し使うようなアニメーションを "_SETTINGS"というコンポジションの中にまとめて宣言して、 レイヤーのインポイントから自動的にアニメーションが開始されるように設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// opacity | |
type = "opacity_fade_in"; | |
try { | |
v = comp("_SETTINGS").layer(type).transform.opacity.valueAtTime(time - thisLayer.inPoint); | |
} catch(err) { | |
v = value | |
} | |
v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// scale | |
type = "scale_springs"; | |
try { | |
m = comp("_SETTINGS").layer(type).transform.scale.valueAtTime(time - thisLayer.inPoint); | |
v = [m[0] * v[0], m[1] * v[1]]; | |
} catch(err) { | |
v = value; | |
} | |
v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment