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

Any updates on reading out and changing captions?

No updates we can share…

Now that we’re much closer to parity with what ExtendScript offered, we are closer to being able to expand Premiere’s available APIs, like adding Captions access.

1 Like