• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Oct 09, 2020 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?

 

TOPICS
Editing , Error or problem , SDK

Views

238

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
community guidelines

correct answers 2 Correct answers

Adobe Employee , Oct 09, 2020 Oct 09, 2020

Does anybody know how I can use these functions?

Yes; get current. 🙂 Both those functions were added to PPro after 14.0.1.

Votes

Translate

Translate
Adobe Employee , Oct 09, 2020 Oct 09, 2020

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.

Votes

Translate

Translate
Adobe Employee ,
Oct 09, 2020 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.

Votes

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
community guidelines
New Here ,
Oct 09, 2020 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?

Votes

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
community guidelines
Adobe Employee ,
Oct 09, 2020 Oct 09, 2020

Copy link to clipboard

Copied

LATEST

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.

Votes

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
community guidelines