Copy link to clipboard
Copied
Weird issue I've come across. Here's what's happening:
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?
I can repro the behavior.
I'm pretty sure what you're seeing is because project items created for 'black video' actually have no timebase.
If I replace 'black video' with 'Universal Counting Leader', I get a correct (0.0 seconds) start time.
Setting expectations: No further changes to PPro's ExtendScript API are planned our scheduled; the team is focused on exposing UXP-based extensibility.
Copy link to clipboard
Copied
Interesting! You're the first to report such an issue.
> Thoughts?
Can you provide a project that displays the behavior described [above], when your snippet is run? [offline media is fine]
Copy link to clipboard
Copied
Just sent. It's just a new project with a black video and a sequence.
Copy link to clipboard
Copied
Whenever I see an hour difference in a programming context, I immediately suspect system clock + timezone issues. Not sure how that could have any effect here, though.
Copy link to clipboard
Copied
I can repro the behavior.
I'm pretty sure what you're seeing is because project items created for 'black video' actually have no timebase.
If I replace 'black video' with 'Universal Counting Leader', I get a correct (0.0 seconds) start time.
Setting expectations: No further changes to PPro's ExtendScript API are planned our scheduled; the team is focused on exposing UXP-based extensibility.
Copy link to clipboard
Copied
So the hour difference for black video should at least be consistent, right?
Copy link to clipboard
Copied
Yes, I think; I don't see any reason why it would change.