Adobe-CEP / Samples

Code samples for CEP extensions
MIT License
972 stars 551 forks source link

end - zeropoint produces a negative number #131

Open russellaugust opened 2 years ago

russellaugust commented 2 years ago

https://github.com/Adobe-CEP/Samples/blob/c857e94ca87d5d440946b0c668c778b497e72476/PProPanel/jsx/PPRO/Premiere.jsx#L768

I know it's commented out, but this produces a negative number. If you want duration, app.project.activeSequence.end divided by 254016000000 seems to work without the zeroPoint.

zeroPoint's ticks appear to be the start timecode in ticks.