[UXP] createSequenceWithPresetPath() is not a function - How to create sequence with custom preset?
Premiere Pro Version: 25.6.3 (also tested on Beta 26.0)
Platform: Windows
Project Template: react-starter
Problem:
I’m trying to create a sequence using a custom preset (.sqpreset), but I’m facing two different issues depending on which method I use:
Attempt 1 - Using createSequence() with presetPath:
javascript
const project = app.project;
const presetPath = "C:/path/to/my/preset.sqpreset";
try {
const sequence = await project.createSequence("MySequence", presetPath);
} catch (error) {
console.error(error); // Error: Invalid preset format
}
Result: Invalid preset format error when pointing to the .sqpreset file
Attempt 2 - Using createSequenceWithPresetPath() (as per documentation):
According to the official documentation, the presetPath parameter is deprecated and we should use createSequenceWithPresetPath() instead:
javascript
const project = app.project;
const presetPath = "C:/path/to/my/preset.sqpreset";
try {
const sequence = await project.createSequenceWithPresetPath(
"MySequence",
presetPath
);
} catch (error) {
console.error(error); // createSequenceWithPresetPath is not a function
}
Result: TypeError: createSequenceWithPresetPath is not a function
Questions:
-
Has the
createSequenceWithPresetPath()method actually been implemented, or is it still pending? -
Is there any alternative way to create sequences with custom presets via UXP?
-
Does the
.sqpresetfile path need to follow any specific structure or format?
What I’ve already tried:
-
Verified that the .sqpresetfile exists and is valid (works normally through Premiere UI) -
Tested with both absolute and relative paths -
Checked UXP API version in manifest.json -
Tested on both stable release (25.6.3) and beta (26.0) -
Using standard react-starter template
Any guidance would be greatly appreciated!