Check if keyframe exists for a specific pose control
jamesramirez6734
Posts: 90
Suppose I want to loop through frames and see if a keyframe exists for that pose control at frame X, is there an effective way to check for a keyframe's existance?
Comments
It may not be the most efficient way, but...
var numKeys = property.getNumKeys();
for (var i = 0; i < numKeys; i++) {
var time = property.getKeyTime(i);
if time == theTimeYoureLookingFor {
return true
}
}
return false