exp_cornerpin.aep 「映像の自動配置(コーナーピン版)」 ユーザーが定義する数値分の映像を、閉ざされた輪の筒状にマッピングし自動配置します。 配置の順番は、時計回りです。 1st. layer パラメータのダミーレイヤーとして使用。 位置のX座標 : 外周の半径(マッピングする外周の大きさ) 位置のY座標 : 内周の半径(マッピングする内周の大きさ) 位置のZ座標 : 分割数(n=3,4,5,.......) 2nd. layer〜 コーナーピン 左上 ------------------------- Div = parseInt(this_comp.layer(1).position[0]); Hankei = this_comp.layer(1).position[1]; kaku_offset = 0; LayerNo = this_layer.index-1; Xcenter = this_comp.width / 2; Ycenter = this_comp.height / 2; Kaku = (360.0/Div)*(LayerNo-1); X = Math.cos(Kaku*Math.PI/180.0)*Hankei+Xcenter; Y = Math.sin(Kaku*Math.PI/180.0)*Hankei+Ycenter; [X,Y]; ------------------------- 右上 ------------------------- Div = parseInt(this_comp.layer(1).position[0]); Hankei = this_comp.layer(1).position[1]; kaku_offset = 0; LayerNo = this_layer.index-1; Xcenter = this_comp.width / 2; Ycenter = this_comp.height / 2; Kaku = (360.0/Div)*(LayerNo-1)+(360.0/Div); X = Math.cos(Kaku*Math.PI/180.0)*Hankei+Xcenter; Y = Math.sin(Kaku*Math.PI/180.0)*Hankei+Ycenter; [X,Y]; ------------------------- 左下 ------------------------- Div = parseInt(this_comp.layer(1).position[0]); Hankei = this_comp.layer(1).position[2]; kaku_offset = 0; LayerNo = this_layer.index-1; Xcenter = this_comp.width / 2; Ycenter = this_comp.height / 2; Kaku = (360.0/Div)*(LayerNo-1); X = Math.cos(Kaku*Math.PI/180.0)*Hankei+Xcenter; Y = Math.sin(Kaku*Math.PI/180.0)*Hankei+Ycenter; [X,Y]; ------------------------- 右下 ------------------------- Div = parseInt(this_comp.layer(1).position[0]); Hankei = this_comp.layer(1).position[2]; kaku_offset = 0; LayerNo = this_layer.index-1; Xcenter = this_comp.width / 2; Ycenter = this_comp.height / 2; Kaku = (360.0/Div)*(LayerNo-1)+(360.0/Div); X = Math.cos(Kaku*Math.PI/180.0)*Hankei+Xcenter; Y = Math.sin(Kaku*Math.PI/180.0)*Hankei+Ycenter; [X,Y]; -------------------------