Keyframe time off by an hour (ExtendScript)
Weird issue I've come across. Here's what's happening:
- I create a brand new project
- I add a Black Video (right-click on project, New Item, Black Video - leave all defaults)
- I add a keyframe to the Opacity property on the Black Video right at the beginning (timestamp 00:00:00:00).
Then I run the following test script:
var c = app.project.activeSequence.videoTracks[0].clips[0];
var oc = c.components[0]; //AE.ADBE Opacity
var op = oc.properties[0]; //Opacity
var keys = op.getKeys();
var k = keys[0];
var s = k.seconds; //s = 3599.9964
So the timestamp for the keyframe, which should be 0, is off by an hour. I'm guessing the fact that it's actually 3599.9964 seconds instead of a round 3600 is because my project is at 59.94 fps.
Any idea what's happening here? I'm trying to add keys to this clip via script, and none of them were appearing so I started to test. I could obviously adjust my script to account for it, but without knowing why it's happening that feels sort of hacky and I'm unsure if I can trust the difference to always be an hour.
Thoughts?
