getFootageInterpretation().frameRate is 2.75404699046078e-8 for sequences

Explorer ,
Jan 23, 2021 Jan 23, 2021

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?

TOPICS
SDK

Views

85

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Adobe Employee , Jan 25, 2021 Jan 25, 2021
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.

Likes

translate

Translate

Translate
Adobe Employee ,
Jan 25, 2021 Jan 25, 2021

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.

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines