Skip to main content
ays.dev
Participating Frequently
August 18, 2021
Answered

How to import caption file srt thru scripting

  • August 18, 2021
  • 1 reply
  • 591 views

Hi

 

I'm trying to import srt caption file into timeline. File imports but not to timeline; i tried insertClip too, but nothing happens.

 

Seems there is a class QECaption, but its not accessible.

 

Any clue, suggesstion is appreciated. Thank you

This topic has been closed for replies.
Correct answer Bruce Bullis

You're right, there's capability to access a caption track; I was hoping it'd import correctly, using insertClip().

Further, there's no API around PPro's new captions workflows. 


1 reply

Bruce Bullis
Legend
August 18, 2021

The QE DOM is neither supported, nor recommended. 

Once you import an .srt file into the project (using (app.project.importFiles()), you can add it to a sequence using insert()

ays.dev
ays.devAuthor
Participating Frequently
August 18, 2021

Thank you for the immidiate respone. Sorry I can see there is only "insertClip" function, which returns no error, though not adding to timeline.

 

Moreover seems there are only two types of track; audio and video; no caption track. Could you please share a sample?

 

thanks again!

Bruce Bullis
Bruce BullisCorrect answer
Legend
August 18, 2021

You're right, there's capability to access a caption track; I was hoping it'd import correctly, using insertClip().

Further, there's no API around PPro's new captions workflows.