Placing and Trimming MOGRT in Sequence Leaves Ghost Clips

,
  • Issue I have created a UXP Plugin that will place MOGRT templates on the timeline using SequenceEditor.insertMogrtFromPath() at certain marker locations and trim the end of it to the location of the next marker using clip.createSetEndAction(). Premiere is leaving an invisible “ghost” clip of the part of the MOGRT that was trimmed.

    These phantom items:

    • Do not appear in the timeline UI

    • Extend the sequence end beyond the actual visible content

    • Can be selected by clicking “empty” space

    • Once selected, the phantom area becomes highlighted as if it were a real clip

    • Right-click context menu shows only Ripple Delete

    • After manipulating the ghost, the UI suddenly draws a real clip at that location

  • Steps to reproduce

  1. Create a UXP plugin that calls:

    const seqEditor = await app.SequenceEditor.getEditor(sequence);
    
    const insertedItems = seqEditor.insertMogrtFromPath(
      "C:\\Path\\To\\TC Scroll.mogrt",
      startTickTime,   // TickTime
      2,               // video track index V3 (0-based)
      0                // audio
    );
    
    
  2. Immediately trim the MOGRT to a shorter duration:

    const trimAction = clip.createSetEndAction(endTickTime);
    
    project.lockedAccess(() =>
      project.executeTransaction(c => c.addAction(trimAction))
    );
    
    
  3. Repeat #1 and #2 multiple times (building a sequence of MOGRT segments).

  4. Observe the timeline UI:

    • No extra clips appear — everything looks clean.
  5. Now click on “empty” space to the right of the visible timeline on V3.

    • A hidden clip becomes selected.

    • The region highlights as if it were a clip.

  6. Drag the edit point or move it slightly.

    • A real clip suddenly appears where the ghost was.
  7. Check the sequence end:

    • sequence.getEndTime() returns a value far beyond the visible content.

    • The sequence end marker in the timeline does not match the real backend end.

  • Expected result Each inserted & trimmed MOGRT should produce one visible TrackItem. The sequence end should match the rightmost visible clip. No invisible “ghost” items should exist.

  • Actual result Invisible, non-drawn TrackItems are created on the target video track (V3). They extend the sequence timeline far past what the UI shows. They can be selected by clicking empty space. Right-click → only “Ripple Delete” is available. When touched, they suddenly appear and reveal that they were real TrackItems the whole time. This corrupts timeline behavior and breaks automation workflows.

  • Screen recording Dropbox

  • Adobe Premiere Pro version – 26.0.0 BETA StaticLib (Build 31)

  • Operating system – Windows 11

  • GPU driver version (Windows only) – NVIDIA Version 581.57

Hi Warren,

Sorry it’s taken a while to test this out; I’m not seeing any ghosts, when I use the premiere_api sample to 1. insert a .mogrt, then 2. ‘trim first selected trackItem’ (the .mogrt trackItem is selected after insertion).

Are you still seeing this behavior, in current PPro beta builds?