-
How to get the same result as timeToFrames with scripting?
I’ve been banging my head trying to get the same result as the expression timeToFrames but via scripting (as it’s missing and can’t use timeToCurrentFormat).
Every time it seems to work, it breaks in more extreme situations (like changing the frame-rate to very high/low).
I’m trying to do some simple calculation like get the first and last frame via scripting.
Also, I’m struggeling to to do the framesToTime calculation as well, it always seems like there are some rounding error that breaks the calculation.
Any suggestions?
* Sorry if the post is unclear, I’ve been looking at this for too long I think.