Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Issue Accessing Caption Items via CaptionTrack API in Premiere Pro UXP Scripting

Community Beginner ,
Jul 28, 2025 Jul 28, 2025

Dear Adobe Premiere Pro Support Team,

I am currently developing a Premiere Pro extension using the UXP scripting API, and I am encountering difficulties when trying to access captions from a sequence’s CaptionTrack.

Specifically, I can successfully retrieve the CaptionTrack object using sequence.getCaptionTrack(), and I can confirm its presence and properties such as id and name. However, when attempting to get caption items using methods like getItems() or getTrackItems(), I consistently receive errors such as:

  • “Not Enough Parameters”

  • “captionTrack.getItems is not a function”

From inspecting the CaptionTrack object, I found that it has a method getTrackItems(), but it appears to require parameters which are not clearly documented.

Below is a simplified snippet of the code I tried:

const captionTrack = await sequence.getCaptionTrack();
if (!captionTrack) {
    alert("No caption track found.");
} else {
    alert(`CaptionTrack found. ID: ${captionTrack.id}, Name: ${captionTrack.name}`);
    // Attempting to get caption items
    try {
        const items = await captionTrack.getTrackItems();
        alert(`Number of captions: ${items.length}`);
    } catch (error) {
        alert(`Error: ${error.message}`);
    }
}

I would greatly appreciate guidance on the correct usage of the CaptionTrack API to access individual caption items (text, timing, etc.) within a CaptionTrack in the UXP environment. If there is sample code or updated documentation addressing this, that would be very helpful.

Thank you very much for your support and assistance.

Best regards,

Muhammadhussein Ammari

TOPICS
SDK
192
Translate
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 , Jul 30, 2025 Jul 30, 2025

Hi xmha97, 

 

Unfortunately, Caption API is still under construction, and there is no available API to access and modify caption properties yet. To access trackItems inside of caption track and use available trackItem API, like the documentation website suggested, you will need input parameters: trackItemType and includeEmptyTrackItem for getTrackItems API. A example usage would be like 

const trackItems = await captionTrack.getTrackItems(
          ppro.Constants.TrackItemType.CLIP, 
          
...
Translate
Adobe Employee ,
Jul 29, 2025 Jul 29, 2025

Hi,

Thanks for your question. I changed the tag of the post to SDK. That way, the right developers will come by to help you. Good luck!

 

Thanks,
Kevin

 

Kevin Monahan - Sr. Community & Engagement Strategist – Pro Video and Audio
Translate
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 ,
Jul 30, 2025 Jul 30, 2025

Hi xmha97, 

 

Unfortunately, Caption API is still under construction, and there is no available API to access and modify caption properties yet. To access trackItems inside of caption track and use available trackItem API, like the documentation website suggested, you will need input parameters: trackItemType and includeEmptyTrackItem for getTrackItems API. A example usage would be like 

const trackItems = await captionTrack.getTrackItems(
          ppro.Constants.TrackItemType.CLIP, 
          false // includeEmptyTrackItems
        );

Caption API is absolutely something planned for future - Apologies for inconvinence, and thanks for trying out UXP!

Translate
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 ,
Jul 30, 2025 Jul 30, 2025
LATEST

Cathy is 100% correct, and...PPro UXP partners are invited to use the PPro UXP CC Developer Forum, to discuss pre-release APIs.

Translate
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