混乱する時があるのでメモ用ですみません・・・
目標の時間/コンポジションフレームレート*100
ただし1秒になった場合1秒は0.30になる。
もし1秒20の場所なら
0.50になる。
他の方法を知っている方、教えてください。
//初期設定
var total=100;
var fc=2.3;
var fl=30;//frame rate
var adComp=app.project.items.addComp("test",1920,1080,1.0,fc,fl);
//textLayer
var text=adComp.layers.addText("alive");
//scall_null_object
var scall_Null=adComp.layers.addNull();
//平面レイヤー作成(optical Flares)
var optical=adComp.layers.addSolid([1,0,0], "opticalFlares", adComp.width,adComp.height,adComp.pixelAspect);
optical.property("ADBE Effect Parade").addProperty("VIDEOCOPILOT OpticalFlares");
//調整レイヤー作成(controll)
var controlLayer = adComp.layers.addSolid([1,1,1],'control', adComp.width,adComp.height,adComp.pixelAspect);
controlLayer.adjustmentLayer = true;
controlLayer.property("ADBE Effect Parade").addProperty("tc Shine");
controlLayer.property("ADBE Effect Parade").addProperty("ADBE Turbulent Displace");
//Shine
var shine=controlLayer.property("ADBE Effect Parade").property("tc Shine");
//Ray Length
var RayLength=shine.property("tc Shine-0002");
RayLength.addKey(0);
RayLength.addKey(0.10/fl*100);
RayLength.addKey(0.20/fl*100);
RayLength.setValueAtKey(1,80);
RayLength.setValueAtKey(2,2.2);
RayLength.setValueAtKey(3,0.4);
//Boost Light
var BoostLight=shine.property("tc Shine-0003").setValue(15.6);
//Turbulent Displace
var turbD=controlLayer.property("ADBE Effect Parade").property("ADBE Turbulent Displace");
//amount (量)
var tdAmount=turbD.property("ADBE Turbulent Displace-0002");
tdAmount.addKey(0);
tdAmount.addKey(0.15/fl*100);
tdAmount.addKey(0.20/fl*100);