Copy link to clipboard
Copied
Can you code through extendscript (or other), automatically adding the caption you desire for a video (by inputing both text and time stamps), either adding:
- the full caption for a video,
- or for a part of a video
- or for just one instant
?
While it is possible to import .srt files via app.project.importFiles(), then create trackItems based on the .srt files' projectItem, PPro offers no other caption-related APIs.
Correct, there is no API access to captions.
Copy link to clipboard
Copied
While it is possible to import .srt files via app.project.importFiles(), then create trackItems based on the .srt files' projectItem, PPro offers no other caption-related APIs.
Copy link to clipboard
Copied
Ok so trackitems, (https://ppro-scripting.docsforadobe.dev/item/trackitem.html) is kind of any "attribute" for a clip.. such as (name, duration..).
So:
1) srt file is imported.
2) analysis of file and string to create values that can be used as track items
Ok then from here you are saying that it is impossible to "communicate with the captions" right? Just so it 100% clear and so I can forget about this idea. (I guess importing manually a srt file can do it instead? with less options to do what you want inside PP)
Copy link to clipboard
Copied
Correct, there is no API access to captions.
Copy link to clipboard
Copied
It's very nice to have this type of communication, thank you so much.
Copy link to clipboard
Copied
if i import .srt files via app.project.importFiles(), then how can i use extend script to drag the srt file to track automatically?
Copy link to clipboard
Copied
You would insert it into a sequence.
https://github.com/Adobe-CEP/Samples/blob/9efca02ea88ad32a8c22571f5ffe2407ae732cd8/PProPanel/jsx/PPR...