Published using Google Docs
テキストボックス追従エクスプレッション
Updated automatically every 5 minutes

▶︎テキストボックス追従基本

サイズ

s=thisComp.layer("text");

w=s.sourceRectAtTime().width;

h=s.sourceRectAtTime(s.outPoint).height;

[w,h]

位置

s=thisComp.layer("text");

w=s.sourceRectAtTime().width/2;

h=s.sourceRectAtTime().height/2;

l=s.sourceRectAtTime().left;

t=s.sourceRectAtTime().top;

[w+l,h+t]

▶︎テキストボックス/アニメーション(高さを固定)

サイズ

s=thisComp.layer("text");

w=s.sourceRectAtTime().width;

h=s.sourceRectAtTime(s.outPoint).height;

[w,h]

位置

s=thisComp.layer("text");

w=s.sourceRectAtTime().width/2;

h=s.sourceRectAtTime(s.outPoint).height/2;

l=s.sourceRectAtTime().left;

t=s.sourceRectAtTime(s.outPoint).top;

[w+l,h+t]

▶︎テキストボックス/アニメーション(テキストと分離)

サイズ

s=thisComp.layer("text");

w=s.sourceRectAtTime(s.outPoint).width;

h=s.sourceRectAtTime(s.outPoint).height;

[w,h]

位置

s=thisComp.layer("text");

w=s.sourceRectAtTime(s.outPoint).width/2;

h=s.sourceRectAtTime(s.outPoint).height/2;

l=s.sourceRectAtTime(s.outPoint).left;

t=s.sourceRectAtTime(s.outPoint).top;

[w+l,h+t]

▶︎アンカーポイント

s=thisComp.layer("text");

l=s.sourceRectAtTime(s.outPoint).left;

t=s.sourceRectAtTime(s.outPoint).top;

o=content("パスのオフセット 1").amount;

[l-o,t-o];