exp_cube.aep 「映像の自動配置(正六面体)」 ユーザーが用意した6つの映像を、正六面体に自動配置します。 1st. layer パラメータのダミーレイヤーとして使用。 位置のX座標 : 正六面体の中心X座標 位置のY座標 : 正六面体の中心Y座標 位置のZ座標 : 正六面体の中心Z座標 2nd. layer 位置 ------------------------- X0 = this_comp.layer(1).position[0]; Y0 = this_comp.layer(1).position[1]; Z0 = this_comp.layer(1).position[2]; X = X0; Y = Y0; Z = Z0; [X, Y, Z]; ------------------------- 3rd. layer 位置 ------------------------- X0 = this_comp.layer(1).position[0]; Y0 = this_comp.layer(1).position[1]; Z0 = this_comp.layer(1).position[2]; X = X0+this_layer.width/2; Y = Y0; Z = Z0+this_layer.width/2; [X,Y,Z]; ------------------------- 4th. layer 位置 ------------------------- X0 = this_comp.layer(1).position[0]; Y0 = this_comp.layer(1).position[1]; Z0 = this_comp.layer(1).position[2]; X = X0; Y = Y0; Z = Z0+this_layer.width; [X,Y,Z]; ------------------------- 5th. layer 位置 ------------------------- X0 = this_comp.layer(1).position[0]; Y0 = this_comp.layer(1).position[1]; Z0 = this_comp.layer(1).position[2]; X = X0-this_layer.width/2; Y = Y0; Z = Z0+this_layer.width/2; [X,Y,Z]; ------------------------- 6th. layer 位置 ------------------------- X0 = this_comp.layer(1).position[0]; Y0 = this_comp.layer(1).position[1]; Z0 = this_comp.layer(1).position[2]; X = X0; Y = Y0-this_layer.width/2; Z = Z0+this_layer.width/2; [X,Y,Z]; ------------------------- 7th. layer 位置 ------------------------- X0 = this_comp.layer(1).position[0]; Y0 = this_comp.layer(1).position[1]; Z0 = this_comp.layer(1).position[2]; X = X0; Y = Y0+this_layer.width/2; Z = Z0+this_layer.width/2; [X,Y,Z]; -------------------------