0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AE エクスプレッション例 波打つ線

Posted at

まずは完成品

シェイプパスをエクスプレッションで書く

シェイプレイヤーのパスのエクスプレッション

DN = effect("Division number")("スライダー") ; //Division number
Max_Width = effect("Max_Width")("スライダー");
PathArray = [];
inT =[];
outT = [];
sl = effect("Pad")("スライダー");
tan = effect("Tangent")("スライダー");

for ( var i = 0 ; i < DN ; i ++){
wid = (Max_Width/(DN-1))*i-(Max_Width/2);
if( ( i % 2 ) != 0 ) {
PathArray.push([wid,0])
}else{
PathArray.push([wid,sl])
}
inT.push([-tan,0])
outT.push([tan,0])
}

createPath(points = PathArray, inTangents = inT, outTangents = outT, is_closed = false)
0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?