Skip to main content
Participant
January 29, 2024
Answered

`performCutDetectionOnSelection` Is not a supported function with `AP-24.01`

  • January 29, 2024
  • 1 reply
  • 316 views

Tried to `Apply Cuts` at the selection with the given script, used VS Code Debugger with `ExtendedScript Debugger`

 

	performCutDetection : function () {
		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.performCutDetectionOnSelection(action, shouldApplyCutsToLinkedAudio, sensitivity);
			} else {
				$._PPP_.updateEventPanel("performCutDetection: Nothing selected, in sequence.");
			}
		} else {
			$._PPP_.updateEventPanel("performCutDetection: No active sequence.");
		}
	},

 

 

This is the exception caught and not able to proceed further

 

This topic has been closed for replies.
Correct answer bbb_999

It seems like you're working from a stale copy of the PProPanel sample code...?

That function was renamed to performSceneEditDetectionOnSelection(), between beta and shipping. 🙂

https://github.com/Adobe-CEP/Samples/blob/e60d6a22ef44d8eb4cca3904c35a0c050576b697/PProPanel/jsx/PPRO/Premiere.jsx#L2802

1 reply

bbb_999
Community Manager
bbb_999Community ManagerCorrect answer
Community Manager
January 29, 2024

It seems like you're working from a stale copy of the PProPanel sample code...?

That function was renamed to performSceneEditDetectionOnSelection(), between beta and shipping. 🙂

https://github.com/Adobe-CEP/Samples/blob/e60d6a22ef44d8eb4cca3904c35a0c050576b697/PProPanel/jsx/PPRO/Premiere.jsx#L2802

Participant
January 30, 2024

Thanks, is there any most recent version of these APIs, since the latest AP is of version 24.1

 

But the file/API version is `23.0`. Where could I check the changelog of `APIs`

Bruce Bullis
Legend
January 30, 2024

There have been no recent API changes.