Skip to main content
Cefalopodo
Inspiring
February 14, 2025
Question

Dealing with KeyframeEase object while copying keyframes in Script

  • February 14, 2025
  • 0 replies
  • 94 views

I'm trying to copy keyframes throug a script, but I'm having problems with getting in and out temporal eases. I have the folowing code:

function copyKey(property, index){
    var keyData = {
        inTemporalEase: property.keyInTemporalEase(index),
        outTemporalEase: property.keyOutTemporalEase(index),
        //Other key properties....
    }
  return keyData
}

$.writln(keyData.inTemporalEase[0].influence) 
//==> 16.666666
$.writln(keyData.outTemporalEase[0].influence) 
//==> 16.666666

 

The problem is that if the keyframe is not eased in after effects, the influence of the KeayframeEase  objects returned by inTemporalEase and outTemporalEase, are always 16,66666, although  the value in after effects is 0.01. 

When the keyframe is eased in After effects, it gets the correct influence value. So, Is there a way to deal with non eased keyframes to get the correct value?