Composition Constraint
将 Shape 约束到 Composition。
Width - 设置从 Composition 中心的百分比,以沿 Composition 宽度对齐 Shape。
Height - 设置从 Composition 中心的百分比,以沿 Composition 高度对齐 Shape。
Offset - 为宽度和高度设置添加/减去一个值 (px)。
- 创建一个 Text Shape。
- 创建一个 Comp Constraint 工具。
- 连接 compConstraint.id→textShape.position。
- 设置 Width 为 0%。
- 设置 Offset X 为 50。
当 Resolution 设置(宽度)更改时,Text Shape 将保持距离 Composition 左边缘 50px。
结合 Dynamic Rendering 使用,可以输出同一 Composition 的多种尺寸。下方示例中,Comp 的 Width 和 Height 连接到几个 Value Arrays,然后将 Render Manager 的 Dynamic Index 连接到 Value Arrays 的 Array Index。同样的技术用于设置 Text Shape’s 的 Size。

Shape 被约束到 3 种不同的输出分辨率