Page 1 of 1

wrong comp.duration;

Posted: February 21st, 2006, 2:57 am
by mads
if I execute this code in 6.5(i dont know about 7.0)

Code: Select all

myComp = app.project.activeItem;

myComp.duration = 0.08;

alert(myComp.duration);
I get this prompt: 0.07999999821186

something is wrong or is it me?

-mads

Posted: February 21st, 2006, 6:51 am
by byronnash
It might have something to do with NTSC drop frame. I found that the time function is broken when using drop frame. To get frame accurate time I multiply the frame duration by the number of frames I need to get correct lengths. Hope this helps.