dA-tools.com

HOME > AfterFx > Script Labs > Sample Script > keyframeEase obj

keyframeEase obj

イーズキーの設定(位置)
var easeIn = new KeyframeEase(0.5, 50);
var easeOut = new KeyframeEase(0.75, 85);
var myPositionProperty = app.project.item(1).layer(1).property("Position")
myPositionProperty.setTemporalEaseAtKey(2, [easeIn],[easeOut]);
イーズキーの設定(スケール3D)
var easeIn = new KeyframeEase(0.5, 50);
var easeOut = new KeyframeEase(0.75, 85);
var myScaleProperty = app.project .item(1).layer(1).property("Scale")
myScaleProperty.setTemporalEaseAtKey(2, [easeIn, easeIn, easeIn], [easeOut,easeOut, easeOut]);