remotion-motion-language
「ブランドの動き方」を担当します。BrandMotion ブロックを出力し、remotion-studio/src/motion/index.ts に対してバリデーションを行います。
トリガー
- BrandConfig に
motionブロックがない、またはmotion.signatureが未設定である。 - コンポジションが一般的だと感じられ、デザイナーが「特徴的な動きが必要」とフラグを立てた場合。
- ブランドモーションを継承する必要がある新しいコンポジションタイプが追加された場合。
入力
brandSlugBrandConfig.voice.toneからのトーン記述子(authoritative / urgent / warm / など)BrandConfig.audienceからのオーディエンス
シグネチャーモーションカタログ
| シグネチャー | 最適な場面 | ベジェ(in) | アンカーフレーム予算 @ 30fps |
|---|---|---|---|
rise | authoritative, reassuring(DR, NRPG) | cubic-bezier(0.22, 1, 0.36, 1)(expo-out) | base 22, slow 40 |
sweep | expert, urgent, decisive(RA) | cubic-bezier(0.22, 1, 0.36, 1) | base 18, slow 36 |
iris | pedagogical, focus-led(CARSI) | cubic-bezier(0.83, 0, 0.17, 1)(expo-in-out) | base 24, slow 42 |
pulse | retail, energetic(CCW) | cubic-bezier(0.34, 1.56, 0.64, 1)(back-out) | base 14, slow 28 |
whip | high-impact reveal | cubic-bezier(0.36, 0, 0.66, -0.56)(back-in) | base 12, slow 24 |
手法
- トーンをシグネチャーにマッピング(上記の表)。
- 各シグネチャー行に従って
durations.fast / base / slowを設定。 transitionFrames= round(durations.base × 0.7) を設定。- イージングトリオを設定:
in(デフォルトで expo-out)、out(expo-in)、inOut(expo-in-out)。 - シグネチャーが
signatureEntry()でサポートされているか検証 — されていない場合はriseにフォールバックし、PR にその旨を記載。
出力
BrandConfig.motion に直接挿入するための BrandMotion オブジェクト。さらに、このブランドに対してなぜこのシグネチャーが選ばれたかを説明する 2~3 行の理由コメント。
境界
authoritativeブランドには決してpulse(オーバーシュート)を使用しない — 軽薄に感じられるため。reassuringブランドには決してwhipを使用しない — 攻撃的すぎるため。signatureEntry()にケースを追加せずにカタログを拡張しない — ランタイムがアイデンティティにフォールスルーするため。
引き継ぎ先
remotion-brand-codify が結果を書き込み、remotion-composition-builder が cfg.motion 経由でそれを読み取ります。