Highlighted

Documented script functions don't exist, i.e. script errors "<some function name> is not a function"

New Here ,
Oct 09, 2020

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?

 

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.

TOPICS
Editing, Error or problem, SDK

Views

42

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Documented script functions don't exist, i.e. script errors "<some function name> is not a function"

New Here ,
Oct 09, 2020

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?

 

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.

TOPICS
Editing, Error or problem, SDK

Views

43

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 09, 2020 0
Adobe Employee ,
Oct 09, 2020

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 09, 2020 0
New Here ,
Oct 09, 2020

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?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 09, 2020 0
Adobe Employee ,
Oct 09, 2020

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 09, 2020 0