How do I read and update caption content in Premiere Pro?

I am trying to read and update subtitle(caption) in Premiere Pro using UXP.
const ppro = require("premierepro"); const project = await ppro.Project.getActiveProject(); const sequence = await project.getActiveSequence(); const caption = await sequence.getCaptionTrack(0); const items = await caption.getTrackItems(1, false);
This returns array of TrackItem but I am not able to view and update the content/value inside the trackitem. How can I do that?

Unfortunately, caption trackItem relevant API is not available at UXP yet. There is no workaround at this time…

Thanks for trying out UXP!

1 Like