wrong comp.duration;

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
mads
Posts: 33
Joined: October 15th, 2004, 6:38 am
Location: Denmark
Contact:

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
byronnash
Posts: 321
Joined: July 7th, 2004, 2:30 pm
Location: Charlotte, NC
Contact:

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.
Post Reply