Copy link to clipboard
Copied
Hey All
Just wondering if it's possible to get the timebase of a project item? I see the startTime method but am not seeing anything that relates to it's timebase. Is there something in the QE DOM?
Thanks
Andy
No, not available today.
What would you do with that info, if you had it?
You can use getFootageInterpretation() to obtain the frameRate of a projectItem.
Copy link to clipboard
Copied
No, not available today.
What would you do with that info, if you had it?
Copy link to clipboard
Copied
Hey Bruce
Thanks for the very quick reply. I'd like to be able to present users timecode accurate details about the source clips used in their timeline. I'm able to accurately generate that using zero point, timebase and start/end for track items, and was hoping to be able to do the same with respect to the track items associated source clip (project item).
Cheers
Andy
Copy link to clipboard
Copied
Makes sense.
Until that happy day (when we offer such info), users could try PPro's Properties panel, to provide additional info.
Copy link to clipboard
Copied
I might not understand what it is your looking for, but you can do this:
app.project.activeSequence.timebase
and that will give you the timebase, which is also the tpf (ticks per frame).
Copy link to clipboard
Copied
That'll work for a sequence, but not media (non-sequence projectItems).
Copy link to clipboard
Copied
You can use getFootageInterpretation() to obtain the frameRate of a projectItem.