Answered
Auto Reframe in PPro Panel and message "Analyzing for Auto Reframe"
Hi - I am a bit confused by the following function in PProPanel:
autoReframeActiveSequence : function () {
var seq = app.project.activeSequence;
if (seq) {
if (seq.isDoneAnalyzingForVideoEffects()) {
var numerator = 1;
var denominator = 1;
var motionPreset = "default"; // valid values = "default", "faster", and "slower"
var newName = seq.name + ", auto-reframed by PProPanel.";
var useNestedSeqs = false;
var newSequence = seq.autoReframeSequence( numerator,
denominator,
motionPreset,
newName,
useNestedSeqs);
if (newSequence) {
$._PPP_.updateEventPanel("Created reframed sequence: " + newName + ".");
} else {
$._PPP_.updateEventPanel("Failed to create re-framed sequence: " + newName + ".");
}
} else {
$._PPP_.updateEventPanel("Analysis incomplete; try again later.");
}
} else {
$._PPP_.updateEventPanel("No active sequence.");
}
}
I am trying to time the "seq.autoReframeSequence" function call. It seems to be returning after creating a reframed sequence. The reframed sequence is created and then I also see a blue progress bar on right bottom saying "Anyalyzing for Auto Reframe".
In documentataion - https://ppro-scripting.docsforadobe.dev/sequence/sequence.html#sequence-autoreframesequence
The "autoReframeSequence" is used without checking isDoneAnalyzingForVideoEffects(). In either case the blue progress bar on right bottom saying "Anyalyzing for Auto Reframe" appears.
How can I include the time of the analysis for Auto Reframe?
