-
Get time value in seconds of keyframes in a given range
I’m able to access all the values of a range of keyframe on a specific prperty, but how can I know when in time they are? Looking to fill the variable “keyframeTime” below. Thanks!
var position = selection[i].property(“ADBE Transform Group”).property(“ADBE Position”);
if(position.numKeys>0){
for (k=1;k<position.numKeys;k++){
var posValues = position.keyValue(k);
var posX = posValues[0];
var posY = posValues[1];
var keyframeTime = ???
}
}