Skip to main content
Inspiring
July 25, 2020
Answered

Does exporting frame from timeline is a sync process?

  • July 25, 2020
  • 2 replies
  • 1123 views

Hey, 

 

I'm bulding a PPro panel, I doing an export of a frame from a sequence using the command:

 

1. some line of code..

2. activeSequence.exportFrameJPEG(<timecode>, <path_to_export_frame>)
3. another line of code..
 
my question is - after this command is executed and the program moves to the next line of code (line 3), do I have a guarantee that the frame is aleady saved and the file is now ready for a read action?
 
I'm asking because I had some issues reading from that file right after I exported it, but when I used some delay (~400-500ms) before reading it, I noticed that I can read the file just fine.
 
thanks
This topic has been closed for replies.
Correct answer Bruce Bullis

Thanks again Bruce! (:

So I've manged to manually select a work area and it worked, but I can't find a propper way to set the work area from cod,e there's nothing online out there.

Is there a way to Get and Set the work area in Extendscript ?


PProPanel shows how:

https://github.com/Adobe-CEP/Samples/blob/f86975c3689e29df03e7d815c3bb874045b7f991/PProPanel/jsx/PPRO/Premiere.jsx#L2520

2 replies

Bruce Bullis
Community Manager
Community Manager
July 25, 2020

No guarantees.

Participant
October 16, 2020

I can't find exportFrameJPEG on the documentation, is there a return value?

I'm trying to execute this method but nothing happens, no exception or other error as @dpt12 mentioned, the next line is executed right after. How can I resolve this issue?

The sequence is active, the time input is valid and also the file path.

Thanks.

Bruce Bullis
Community Manager
Community Manager
October 16, 2020

exportFrameJPEG() is part of the unsupported, undocumented, and not-recommended QE DOM.

I can neither confirm nor deny that it returns a bool, true if successful. 😉


Ivan Stepanov
Legend
July 25, 2020

From my observation, exportFrameJPEG() consits of two parts:
- exporting frame, sync process.
- creating (writing) file, async process.

After export you still need to check if file was created in your system.