remotion-motion-language
负责定义“品牌如何运动”。输出一个 BrandMotion 块,该块将通过 remotion-studio/src/motion/index.ts 进行验证。
触发条件
- BrandConfig 中没有
motion块,或者motion.signature未设置。 - 某个合成感觉过于通用——设计者标记为“需要独特的动作”。
- 新增的合成类型需要继承品牌动作。
输入
brandSlug- 来自
BrandConfig.voice.tone的语气描述(权威 / 紧迫 / 温暖 等) - 来自
BrandConfig.audience的受众信息
签名动作目录
| 签名 | 最佳适用场景 | 贝塞尔曲线(入场) | 基准帧预算(30fps) |
|---|---|---|---|
rise | 权威、令人安心(DR, NRPG) | cubic-bezier(0.22, 1, 0.36, 1)(expo-out) | 基准 22,慢速 40 |
sweep | 专家、紧迫、果断(RA) | cubic-bezier(0.22, 1, 0.36, 1) | 基准 18,慢速 36 |
iris | 教学、聚焦引导(CARSI) | cubic-bezier(0.83, 0, 0.17, 1)(expo-in-out) | 基准 24,慢速 42 |
pulse | 零售、充满活力(CCW) | cubic-bezier(0.34, 1.56, 0.64, 1)(back-out) | 基准 14,慢速 28 |
whip | 高冲击力揭示 | cubic-bezier(0.36, 0, 0.66, -0.56)(back-in) | 基准 12,慢速 24 |
方法
- 将语气映射到签名(见上表)。
- 根据签名行设置
durations.fast / base / slow。 - 设置
transitionFrames= round(durations.base × 0.7)。 - 设置缓动三元组:
in(默认 expo-out)、out(expo-in)、inOut(expo-in-out)。 - 验证该签名是否被
signatureEntry()支持——如果不支持,则回退到rise并在 PR 中注明。
输出
一个 BrandMotion 对象,用于直接插入 BrandConfig.motion。附带 2-3 行的理由注释,解释为何为该品牌选择此签名。
边界
- 切勿对
authoritative(权威)品牌使用pulse(过冲)——会显得轻浮。 - 切勿对
reassuring(令人安心)品牌使用whip(鞭挞)——过于激进。 - 切勿在未向
signatureEntry()添加对应分支的情况下扩展目录——否则运行时将回退到恒等变换。
交接
remotion-brand-codify 负责写入结果;remotion-composition-builder 通过 cfg.motion 读取它。