Copy link to clipboard
Copied
I can't use scene detection in AP 14.7 at least using API.
Testing script:
var seq = app.project.activeSequence;
var i0 = seq.videoTracks[0].clips[0];
var i2 = app.project.createNewSequenceFromClips(seq.name + '_temporary', i0.projectItem);
var i3 = i2.performSceneEditDetectionOnSelection('CreateMarkers', true, 'LowSensitivity');
I run it, a new sequence with specified clip is created, then modal window "Scene Edit Detection" hangs for a very long time without progress and nothing happens. If I make scene detection manually (through GUI context menu) AP works correctly. Also nothing happens if I change parameters 'Create Markers' or sensitivity.
First...why 14.7?
Second, the function's name is performCutDetectionOnSelection(). I've since updated the docs. Here's a working code snippet:
Third, I notice that you don't get or set any selection, before calling the function. That will limit its effectiveness. 🙂
Copy link to clipboard
Copied
First...why 14.7?
Second, the function's name is performCutDetectionOnSelection(). I've since updated the docs. Here's a working code snippet:
Third, I notice that you don't get or set any selection, before calling the function. That will limit its effectiveness. 🙂
Copy link to clipboard
Copied
First. I'm using the same version that my partner has installed 🙂
Second. Thanks. Maybe I had an outdated document.
Third. It was a simply example. I took only one trackitem for temporary nested sequence. Globally the task is different. I want to get the array of cuts for each of trackitems and analize it further. Is it really to add any function for getting an array of cuts without cutting and any visible interference? For the present I see 2 ways: making temoprary sequences+using CutDetection function+counting cuts+deleting temporary sequence or using external tool such as FFMPEG.
Copy link to clipboard
Copied
On the second point; that wasn't you, it was us. Ok, me. 🙂
I'm not sure I follow your global, 'task is different' task description...The function is a method of the Sequence object, which operates on selected trackItems within that sequence. If you'd like to analyze everything in the sequence, select all trackItems.