SourceRectAtTime(keyTime, false) not updating?
This is a pretty basic question. I have 1 text layer to which I added 2 keyframes on the scale property. I need to record its width and height at each key index. It is point text (although eventually I will need to figure out how to do this with box/allocated text as well).
so I have
if (layer.property("Scale").isTimeVarying){
for (var i = 1; i <= layer.property("Scale").numKeys; i++){
alert(layer.sourceRectAtTime(layer.property("Scale").keyTime(i), false).width);
}
}
unless I'm missing something, if I have transformed the layer's scale between keyframes, I should be getting different values in my alerts, but I don't. Am I misunderstanding something about how sourceRectAtTime works, or is this something unique to text layers, or...?