• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

695

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

Contributor , Jul 20, 2021 Jul 20, 2021

Votes

Translate

Translate
Contributor , 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

Votes

Translate

Translate
Contributor ,
Jul 20, 2021 Jul 20, 2021

Copy link to clipboard

Copied

Votes

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

Votes

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
Contributor ,
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.

Votes

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.

Votes

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.

Votes

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.

Votes

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!

Votes

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()?

 

Votes

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
Contributor ,
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

Votes

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)!

Votes

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