BUG:Inaccurate results when setting displayStartTime via script
After Effects does some bad math when I try to set the displayStartTime of a comp via script.
When I attempt to set the displayStartTime of a 30fps comp to frame 1000 (33.333333333333 seconds).
The result startTime is instead 33.3333320617676, which rounds down to frame 999.
However, setting the startFrame to 1000 manually in the comp settings does make the startTime 33.3333333333333, which should be the expected result via script.
Russell Anderson commented
I’ve run up against this so many times! Hopefully this gets fixed quickly.
Casey Curtiss commented
This is a huge issue for getting shots back into Premiere. This bug means our VFX delivery timecode could be one frame off. But not consistently. Having shots one frame off is a major hindrance to our workflow.
Number Thirteen commented
This bug may also affect changing the value of comp.duration.
Christopher Doulgeris commented
One potential solution could be to implement a displayStartTime method that accepts rational numbers. In the example of frame 1000 @ 30fps, the code would read comp.displayStartTimeRational = [1000, 30]. Comp.displayStartTimeRational would also return [1000, 30].