Highlighted

newest version of premiere doesn't allow arrays in scripting

Community Beginner ,
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

"

 

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. 

TOPICS
Error or problem, SDK

Views

59

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

newest version of premiere doesn't allow arrays in scripting

Community Beginner ,
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

"

 

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. 

TOPICS
Error or problem, SDK

Views

60

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

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...
Aug 27, 2020 0
Adobe Employee ,
Aug 27, 2020

Copy link to clipboard

Copied

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. 

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...
Aug 27, 2020 0
Explorer ,
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() )?

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

Copy link to clipboard

Copied

thanks Eli, I just tried that and it works. 

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