-
Script for scale animation with custom interpolation.
Hi all. I’m trying to make a script so that when I press a button, 2 keys with such interpolation are created on the Scale parameter of the selected layer. I have such code, but I stumbled on setTemporalEaseAtKey. Help me please. Where am I wrong?
var myScaleProperty = app.project.activeItem.selectedLayers[0].property(“Scale”);
var tStartIn = 0;
var tStartOut = 1;
myScaleProperty.setValuesAtTimes([tStartIn,tStartOut],[[0,0],[100,100]]);
myScaleProperty.setTemporalEaseAtKey(1, [0.5]);
myScaleProperty.setTemporalEaseAtKey(2, [0.8]);