Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 150094

Re: Convert all keyframes to easy ease or linear

$
0
0

Sorry for troubling but when i run code like below it returns an error and after stopping debug it only applies ease to keys of first property.

hata.JPG

 

var keyedProps = getPropsWithKeys(app.project.activeItem.layers[1]);

for (var i = 0; i < keyedProps.length; i++) { 

    var curProp = keyedProps[i];

     var numKeys = curProp.numKeys;

     for(var j = 0; j < numKeys; j++){

            // do your custom easing HERE with curKey

            var curKeyIndex = j+1;

         

            var easeIn = new KeyframeEase(0.5, 50);

            var easeOut = new KeyframeEase(0.75, 85);

 

 

curProp.setTemporalEaseAtKey(curKeyIndex, [easeIn], [easeOut]);

 

 

    }

}


Viewing all articles
Browse latest Browse all 150094

Trending Articles