Copy link to clipboard
Copied
I am trying to script Premiere Pro, following the Premiere Pro Scripting Guide.
Unfortunately I am running into the issue that not all documented functions seem to exist.
I am using the VSCode ExtendScript debugger plugin on a Mac and Premiere Pro 14.0.1 (build 71).
For example importing works:
app.project.importFiles(["day1-1.mov", "day1-2.mov", "day1-3.mov"], true, app.project.rootItem, false)
But using the function createNewSequenceFromClips:
app.project.createNewSequenceFromClips("sequenceName"
, [app.project.rootItem.children[0]
, app.project.rootItem.children[1]
, app.project.rootItem.children[2]]
, app.project.rootItem);
returns:
app.project.createNewSequenceFromClips is not a function
Same happens with the function autoReframeSequence for example.
As can be seen these functions are documented, so I expect them to exist. Does anybody know how I can use these functions?
> Does anybody know how I can use these functions?
Yes; get current. 🙂 Both those functions were added to PPro after 14.0.1.
That's the right place; we (ok, I) should be updating that changelog more frequently.
General guideline: APIs for features don't show up before the feature shows up in the application.
Copy link to clipboard
Copied
> Does anybody know how I can use these functions?
Yes; get current. 🙂 Both those functions were added to PPro after 14.0.1.
Copy link to clipboard
Copied
Alright thanks for the answer. I assumed being outdated was not the issue as the changelog of the scripting guide doesn't mention anything about these functions being added in 14.0.1+
For future reference: do you maybe have a source where I can see which functions are introduced at each version?
Copy link to clipboard
Copied
That's the right place; we (ok, I) should be updating that changelog more frequently.
General guideline: APIs for features don't show up before the feature shows up in the application.