Skip to main content
Participating Frequently
February 20, 2026
Question

UXP for Premiere - CEP Time Object disappear in UXP

  • February 20, 2026
  • 1 reply
  • 9 views

While migrating from CEP to UXP, I noticed that the Time object available in CEP does not appear to exist in UXP.

In CEP, I used Time.getFormatted() to retrieve the current sequence In/Out points as formatted text. For example, I could easily convert time values into display strings using that API.

However, in UXP, the Time object does not seem to be available, so I can no longer use Time.getFormatted().

I would like to ask:

  • Is the Time object planned to be added to the UXP API in the future?

  • If not, what is the recommended way in UXP to format sequence In/Out time values into text (e.g., timecode format)?

Currently, this functionality is missing compared to CEP, and I’m looking for the correct replacement approach in UXP.

    1 reply

    Joëlle Bh
    Community Expert
    Community Expert
    February 24, 2026

    Hi Gwang,

    Thanks for your question regarding the Time object while migrating from CEP to UXP.

    In CEP, Time.getFormatted() provides a convenient way to retrieve and format sequence In/Out points. In UXP, this object is not currently available, so there isn’t a direct 1:1 replacement at this time.

    Recommended approaches in UXP:

    1. Use sequence time properties via ExtendScript:
      You can still call ExtendScript from your UXP panel using CSInterface.evalScript() to access sequence In/Out points and format them. For example, you can retrieve the time in frames or seconds and convert it to a timecode string in your panel.

    2. Manual formatting in JavaScript:
      Retrieve the raw time values (seconds or frames) and format them in UXP using a helper function. For example, you can implement a simple timecode formatter:

       

      function secondsToTimecode(seconds, fps = 30) {
      const totalFrames = Math.round(seconds * fps);
      const hours = Math.floor(totalFrames / (fps * 3600));
      const minutes = Math.floor((totalFrames % (fps * 3600)) / (fps * 60));
      const secs = Math.floor((totalFrames % (fps * 60)) / fps);
      const frames = totalFrames % fps;
      return `${hours.toString().padStart(2,'0')}:${minutes.toString().padStart(2,'0')}:${secs.toString().padStart(2,'0')}:${frames.toString().padStart(2,'0')}`;
      }

    3. Future API updates:
      At this time, the Time object is not part of the UXP API. If there are plans to include a direct replacement, those updates will be documented in the official UXP API release notes.

    Using the combination of ExtendScript calls for sequence data and JavaScript formatting in UXP, you can replicate most of the functionality you had with Time.getFormatted().