How to get an image of current timeline frame in CEP Panel

New Here ,
Jul 19, 2021 Jul 19, 2021

Copy link to clipboard

Copied

I'm working on a CEP panel for Premiere Pro. I'd like to display there a current frame of the timeline as seen in the "Program" panel. How can I retrieve that with ExtendScript?

 

I want some code samples, but there are no code samples and how can I export a .png of the program monitor's contents in CEP Panel?

 

Please help me!

TOPICS
Export, How to, SDK

Views

69

Likes

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

Explorer , Jul 20, 2021 Jul 20, 2021

Likes

Translate

Translate
Explorer ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

Likes

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
New Here ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

I tried the function exportCurrentFrameAsPNG() from GitHub. But it only exporting the first frame of the sequence. I tried to change the time parameter. But nothing works

Likes

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
Explorer ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

Where is you playhead when you launch that function? In example above it will use playhead position (CTI) as a time parameter.

Likes

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
New Here ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

I changed the play head position to different positions. And then executed the function. But still not working.

Likes

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
Adobe Employee ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

In what way does it not work? 

Ivan's guidance is good, and the referenced function works here.

Likes

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
New Here ,
Jul 21, 2021 Jul 21, 2021

Copy link to clipboard

Copied

LATEST

The exportCurrentFrameAsPNG() works. But it capturing only first frame of the sequence. Even I changed the play head position.

 

After a little bit of research, i found a method grabCurrentFrame() in csInterface.evalScript() works. It returns correct timeline frame.

 

But I don't know how to use the grabCurrentFrame() function and which paramaters should I pass through the function. Can anyone help me? It would be appreciated if you can give me some samble codes of grabCurrentFrame() function.

Likes

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