2
2

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.

scriptでキーフレームを打つ時の計算式(時間で設定する)

Last updated at Posted at 2017-06-08

混乱する時があるのでメモ用ですみません・・・

目標の時間/コンポジションフレームレート*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);
2
2
4

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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?