Page 1 of 1

Can't find the code ID to open the Scripting & Expressions window

Posted: April 4th, 2020, 12:36 am
by leandroprz

Until AE 2018 or maybe 2019 (I'm not sure), the option to "allow scripts to write files and access network" was located in Preferenes > General.

In my script I was opening that window using this:

Code: Select all

app.executeCommand(2359);

But in AE 2020 they moved the option to a new window called Scripting & Expressions and I can't find a way to directly open it.

I tried using this code, but nothing happens or I get a 0.

Is there another way to get this working?


Re: Can't find the code ID to open the Scripting & Expressions window

Posted: May 10th, 2020, 9:01 am
by alexmunteanu

3131 is the command id, so:

Code: Select all

if (parseFloat(app.version) < 16.1) app.executeCommand(2359);
else app.executeCommand(3131);

Re: Can't find the code ID to open the Scripting & Expressions window

Posted: May 18th, 2020, 6:47 pm
by leandroprz
alexmunteanu wrote: May 10th, 2020, 9:01 am

3131 is the command id, so:

Code: Select all

if (parseFloat(app.version) < 16.1) app.executeCommand(2359);
else app.executeCommand(3131);

Works great. Thank you so much!