Skip to content

Instantly share code, notes, and snippets.

@baku89
Last active August 29, 2015 13:56
Show Gist options
  • Save baku89/9339825 to your computer and use it in GitHub Desktop.
Save baku89/9339825 to your computer and use it in GitHub Desktop.
プレゼン映像のタイトルや吹き出し・矢印など、繰り返し使うようなアニメーションを "_SETTINGS"というコンポジションの中にまとめて宣言して、 レイヤーのインポイントから自動的にアニメーションが開始されるように設定
// opacity
type = "opacity_fade_in";
try {
v = comp("_SETTINGS").layer(type).transform.opacity.valueAtTime(time - thisLayer.inPoint);
} catch(err) {
v = value
}
v
// 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