Page 1 of 1

SERIOUS DOUBLE PRECISION ERROR

Posted: October 11th, 2013, 11:01 am
by vidjuheffex
Someone PLEASE explain to me your methods for working with the fact that dealing with seconds for scripting is terrible.

I cannot code anything involving my queue without it rendering a frame earlier than indicated by the workarea duration. Or a frame later.

If you start counting frames at 1 it breaks ae's internal math.

I have found instances of accuracy only working if you lop off (not round) after three decimals, others where rounding is necessary, others where .0000000000001 level precision is necessary.

I can't believe not giving the option to scripts with frame numbers (no confusion with integers is there?)

So what has everyone found to help deal with it? Helper functions?

Re: SERIOUS DOUBLE PRECISION ERROR

Posted: October 15th, 2013, 3:18 pm
by ernpchan
I use this off a post on the Adobe forum to accurately get my place in time.

frame = selection.time + (.001/selection.frameRate);

Re: SERIOUS DOUBLE PRECISION ERROR

Posted: October 15th, 2013, 9:07 pm
by vidjuheffex
Thanks. will give this a shot.