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

newest version of premiere doesn't allow arrays in scripting

Community Beginner ,
Aug 27, 2020 Aug 27, 2020

Copy link to clipboard

Copied

I recently updated my Premiere pro version to the current 2020. I've noticed that arrays no longer appear to be supported in the scripting engine. for instance

ml = []

alert(ml)

breaks the entire script. what happened? is there an alertanative that I can use instead of arrays? how do i move around my data?

 

the error i get 

"

Runtime Error: Error Code# 1: Illegal Parameter type @ file

"

 

TOPICS
Error or problem , SDK

Views

404

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

Explorer , Aug 27, 2020 Aug 27, 2020

I believe with New World scripting the types are more strict. Can you do alert( ml.toString() )?

Votes

Translate

Translate
Adobe Employee , Aug 27, 2020 Aug 27, 2020

Arrays work great in New World.

 

What you're running into is that New World does not provide support for implicit type coercion to String, which is what alert(ml) relies upon. 

Votes

Translate

Translate
Community Beginner ,
Aug 27, 2020 Aug 27, 2020

Copy link to clipboard

Copied

this problem occurs in my visul-studio debug env, and also breaks my old custom plugins that feature arrays. please help!

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 ,
Aug 27, 2020 Aug 27, 2020

Copy link to clipboard

Copied

LATEST

Arrays work great in New World.

 

What you're running into is that New World does not provide support for implicit type coercion to String, which is what alert(ml) relies upon. 

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
Explorer ,
Aug 27, 2020 Aug 27, 2020

Copy link to clipboard

Copied

I believe with New World scripting the types are more strict. Can you do alert( ml.toString() )?

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
Community Beginner ,
Aug 27, 2020 Aug 27, 2020

Copy link to clipboard

Copied

thanks Eli, I just tried that and it works. 

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