Copy link to clipboard
Copied
Hey everyone,
I'm trying to detect cuts in a sequence via ExtendScript in Premiere Pro using the following bit of code:
var activeSeq = app.project.activeSequence;
activeSeq.performSceneEditDetectionOnSelection("ApplyCuts", true, "LowSensitivity");
The Scene Edit Detection dialogue pops up and it says analyzing clips, but the progress bar never advances.
I've tried changing the sensitivity and using the "CreateMarkers" action instead but it still says Scene Edit Detection regardless of which string I use for the first parameter and progress bar never moves.
I've confirmed that the Scene Edit Detection functionality works when I right click the media in the sequence and initiate the process manually. I'm on Premiere Pro 24.5.0 (Build 57).
Any help would be appreciated. Thank you!
I've confirmed that PProPanel's scene detection works correctly in 24.5.0x57.
Is the failure specific to a given sequence or project?
Does [below] work?
var activeSeq = app.project.activeSequence;
if (activeSeq) {
var sel = activeSeq.getSelection();
if (sel) {
var action = 'ApplyCuts'; //'ApplyCuts', 'CreateMarkers'
var shouldApplyCutsToLinkedAudio = true;
var sensitivity = 'LowSensitivity'; //'LowSensitivity', 'MediumSensitivity', 'HighSensitivity'
var result = activeSeq.pe
...
Copy link to clipboard
Copied
I've confirmed that PProPanel's scene detection works correctly in 24.5.0x57.
Is the failure specific to a given sequence or project?
Does [below] work?
var activeSeq = app.project.activeSequence;
if (activeSeq) {
var sel = activeSeq.getSelection();
if (sel) {
var action = 'ApplyCuts'; //'ApplyCuts', 'CreateMarkers'
var shouldApplyCutsToLinkedAudio = true;
var sensitivity = 'LowSensitivity'; //'LowSensitivity', 'MediumSensitivity', 'HighSensitivity'
var result = activeSeq.performSceneEditDetectionOnSelection(action, shouldApplyCutsToLinkedAudio, sensitivity);
}
}
Copy link to clipboard
Copied
Hey Bruce,
This issue occurs on multiple sequences across multiple projects.
I was able to get both versions of the code to analyze the clips successfully by selecting the media on the timeline before running the code. If the sequence is active but none of the media is selected on the timeline, then the analyze clips progress bar never advances.
Is this working as intended?
Copy link to clipboard
Copied
Yep; The example code is checking for a selection within the sequence. You don't have to. 🙂
Copy link to clipboard
Copied
Amazing! Thanks Bruce!