This recipe features a subtitle bar that adjusts to the text.
Perfect for typography work—create a stylish and dynamic video! :)
SIZE -
------------------------------------------------------------------------------------------------
s = thisComp.layer("TEXT 1");
rect = s.sourceRectAtTime();
paddingV = 20; // 위/아래 여백
paddingH = 70; // 좌/우 여백
width = rect.width + paddingH * 2;
height = rect.height + paddingV * 2;
[width, height]
------------------------------------------------------------------------------------------------
-Position -
------------------------------------------------------------------------------------------------
s = thisComp.layer("TEXT 1");
rect = s.sourceRectAtTime();
x = rect.left + rect.width / 2;
y = rect.top + rect.height / 2;
[x, y]
------------------------------------------------------------------------------------------------
#AfterEffects #Typography #SubtitleBar