Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


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

Community Beginner ,
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

144

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 2 Correct answers

Participant , Jul 20, 2021 Jul 20, 2021

Likes

Translate

Translate
Participant , Jul 28, 2021 Jul 28, 2021
Looks like there is a mistake in github example. Russel August noticed it:https://github.com/Adobe-CEP/Samples/issues/129

Likes

Translate

Translate
Participant ,
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
Community Beginner ,
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
Participant ,
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
Community Beginner ,
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
Community Beginner ,
Jul 21, 2021 Jul 21, 2021

Copy link to clipboard

Copied

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
Community Beginner ,
Jul 27, 2021 Jul 27, 2021

Copy link to clipboard

Copied

Can you elaborate on grabCurrentFrame()?  I'm trying to do something similar but running into some trouble.  Hoping to send a frame still through a webhook but I need to capture the frame!

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 28, 2021 Jul 28, 2021

Copy link to clipboard

Copied

Where are you seeing grabCurrentFrame()?

 

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
Participant ,
Jul 28, 2021 Jul 28, 2021

Copy link to clipboard

Copied

Looks like there is a mistake in github example. Russel August noticed it:

https://github.com/Adobe-CEP/Samples/issues/129

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 29, 2021 Jul 29, 2021

Copy link to clipboard

Copied

LATEST

Fixed; thanks, Russell (and Ivan)!

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