Copy link to clipboard
Copied
I'm developing a CEP extension for Adobe Premiere Pro and need to know the frame rate of a selected clip on the timeline.
I'm running:
app.project.activeSequence.getSelection()[0].projectItem.getFootageInterpretation().frameRate
which returns correctly e.g. 23.976023976024 for regular video clips.
But if the selection is a nested sequence then it will return a super small number: 2.75404699046078e-8
How to get around this?
Copy link to clipboard
Copied
Hadn't heard of that issue.
You can use projectItem.isSequence() to check for sequences, and use the sequence object's getSettings() method to get the frame rate.