Skip to main content
CACUser4
Participating Frequently
May 8, 2026
Question

How to use performSceneEditDetectionOnSelection?

  • May 8, 2026
  • 1 reply
  • 41 views

I am trying to create a plugin using UXP to do Scene Edit Detection. It is a bit confusing. There is a static method “performSceneEditDetectionOnSelection” with SequenceUtils, but not clear how exactly to use it.

    1 reply

    mattchristensen1
    Community Manager
    Community Manager
    May 11, 2026

    @CACUser4 sorry the documentation isn’t fully clear. I’ll put in a note to get that improved. In the meantime, you can think of it like this:

    1. Build a TrackItemSelection of one or more clips on a video track.
    2. Run performSceneEditDetectionOnSelection against SequenceUtils
      1. make sure to pass in a clipOperation which in this case is one of three options, defined as a constant SequenceOperation

    So a very brief example might look like:

    const ppro = require("premierepro");

    // Do all your trackItemSelection building here

    ppro.SequenceUtils.performSceneEditDetectionOnSelection(
    ppro.Constants.SequenceOperation.APPLYCUT,
    trackItemSelection
    );

     

    CACUser4
    CACUser4Author
    Participating Frequently
    May 27, 2026

    Thanks for your response.

    Unfortunately, it is also not clear how to “Build a TrackItemSelection of one or more clips on a video track.” 
    Do I createEmptySelection first and then add a trackItem using addItem?
    some sample code would be very useful