SERIOUS DOUBLE PRECISION ERROR

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
vidjuheffex
Posts: 18
Joined: May 6th, 2012, 2:11 pm

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?
ernpchan
Posts: 56
Joined: February 8th, 2010, 11:27 pm

I use this off a post on the Adobe forum to accurately get my place in time.

frame = selection.time + (.001/selection.frameRate);
vidjuheffex
Posts: 18
Joined: May 6th, 2012, 2:11 pm

Thanks. will give this a shot.
Post Reply