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

ExtendScript performSceneEditDetectionOnSelection doesn't analyze clips

Community Beginner ,
Jul 25, 2024 Jul 25, 2024

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!

TOPICS
SDK

Views

346

Translate

Translate

Report

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 26, 2024 Jul 26, 2024

Yep; The example code is checking for a selection within the sequence. You don't have to. 🙂

 

https://github.com/Adobe-CEP/Samples/blob/9efca02ea88ad32a8c22571f5ffe2407ae732cd8/PProPanel/jsx/PPRO/Premiere.jsx#L2798

Votes

Translate

Translate

correct answers 1 Pinned Reply

Adobe Employee , Jul 26, 2024 Jul 26, 2024

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
...

Votes

Translate

Translate
Adobe Employee ,
Jul 26, 2024 Jul 26, 2024

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);
	} 
}

Votes

Translate

Translate

Report

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
Community Beginner ,
Jul 26, 2024 Jul 26, 2024

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?

Votes

Translate

Translate

Report

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 26, 2024 Jul 26, 2024

Copy link to clipboard

Copied

Yep; The example code is checking for a selection within the sequence. You don't have to. 🙂

 

https://github.com/Adobe-CEP/Samples/blob/9efca02ea88ad32a8c22571f5ffe2407ae732cd8/PProPanel/jsx/PPR...

Votes

Translate

Translate

Report

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
Explorer ,
Nov 19, 2024 Nov 19, 2024

Copy link to clipboard

Copied

hi 🙂
having the same problem.

when developing the feature using the performSceneEditDetectionOnSelection works good, but when sending the relevant ZXP to the QA we have the same problem in his premiere (The Scene Edit Detection dialogue pops up and it says analyzing clips, but the progress bar never advances).

we have active sequense so this solution dont work for us.


some details:
* the development was with premiere 23.
* the qa have premiere 25/24.3

Votes

Translate

Translate

Report

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 ,
Nov 19, 2024 Nov 19, 2024

Copy link to clipboard

Copied

>   we have active sequense so this solution dont work for us.

The solution was not to have an active sequence; the solution was to have track items selected. 

 

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.

Votes

Translate

Translate

Report

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
Explorer ,
Nov 19, 2024 Nov 19, 2024

Copy link to clipboard

Copied

ok, but in my env this work so maybe this is other problem?

Votes

Translate

Translate

Report

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 ,
Nov 19, 2024 Nov 19, 2024

Copy link to clipboard

Copied

Hard to say, without specifics. 

Recommendation: Set breakpoints and debug on a QA's system, and confirm that all the parameters you're passing to performSceneEditDetectionOnSelection() are valid.

Votes

Translate

Translate

Report

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
Explorer ,
Nov 19, 2024 Nov 19, 2024

Copy link to clipboard

Copied

did that and looks good.
i think i will add the selection anyway to the code to check if this is working.
what is the best way to select the track items in the api code?

Votes

Translate

Translate

Report

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 ,
Nov 19, 2024 Nov 19, 2024

Copy link to clipboard

Copied

See lots of examples of calling trackItem.setSelected(), in PProPanel.

Votes

Translate

Translate

Report

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
Explorer ,
Nov 19, 2024 Nov 19, 2024

Copy link to clipboard

Copied

Thank you! I think this solve my problem.
there is a problem working with mxf in premeire 25 version?
the app is carching when trying to import mxf file.

Votes

Translate

Translate

Report

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 ,
Nov 19, 2024 Nov 19, 2024

Copy link to clipboard

Copied

LATEST

I don't know of any MXF issues; I'd recommend starting a new, non-ExtendScript-related thread in which to discuss such issues. 🙂

Votes

Translate

Translate

Report

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
Community Beginner ,
Jul 26, 2024 Jul 26, 2024

Copy link to clipboard

Copied

Amazing! Thanks Bruce!

Votes

Translate

Translate

Report

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