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 import caption file srt thru scripting

Community Beginner ,
Aug 18, 2021 Aug 18, 2021

Copy link to clipboard

Copied

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

TOPICS
Error or problem, How to, Import, SDK

Views

56

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 1 Correct answer

Adobe Employee , Aug 18, 2021 Aug 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. 

Likes

Translate

Translate
Adobe Employee ,
Aug 18, 2021 Aug 18, 2021

Copy link to clipboard

Copied

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

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 ,
Aug 18, 2021 Aug 18, 2021

Copy link to clipboard

Copied

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!

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 ,
Aug 18, 2021 Aug 18, 2021

Copy link to clipboard

Copied

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. 


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 ,
Aug 18, 2021 Aug 18, 2021

Copy link to clipboard

Copied

LATEST

Thats very disappointing; thank you for the imm response.

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