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!
Here is how to export current frame:
Looks like there is a mistake in github example. Russel August noticed it:
Copy link to clipboard
Copied
Here is how to export current frame:
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
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.
Copy link to clipboard
Copied
I changed the play head position to different positions. And then executed the function. But still not working.
Copy link to clipboard
Copied
In what way does it not work?
Ivan's guidance is good, and the referenced function works here.
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.
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!
Copy link to clipboard
Copied
Where are you seeing grabCurrentFrame()?
Copy link to clipboard
Copied
Looks like there is a mistake in github example. Russel August noticed it:
Copy link to clipboard
Copied
Fixed; thanks, Russell (and Ivan)!