LoginSignup
1
0

More than 3 years have passed since last update.

【Aftereffects】エクスプレッションでマスクのパスのポイント位置の取得

Last updated at Posted at 2020-03-13

レイヤー位置は固定で特定のマスクのパスを他のオブジェクトに追従させたいときとかに以下のように取得。

.maskPath.points()[i][p]

i : ポイントのインデックス(何個目か)
p : 位置のインデックス(0=x, 1=y)

myPath = thisComp.layer("hoge").mask("マスク 1").maskPath.points()[i];

テキストにするにはこんな感じ。
74d408445b745b8b8b95cb8a77fd3a61.png

円形マスクのセンター取得は↓

myPath = thisComp.layer("Mask").mask("マスク 1").maskPath.points();
myPath[0][0],myPath[1][1]

※AE CC2014ではまだ実装されてなかった…

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0