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

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
leandroprz
Posts: 3
Joined: April 4th, 2020, 12:26 am

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?

User avatar
alexmunteanu
Posts: 8
Joined: April 11th, 2020, 9:27 pm

3131 is the command id, so:

Code: Select all

if (parseFloat(app.version) < 16.1) app.executeCommand(2359);
else app.executeCommand(3131);
leandroprz
Posts: 3
Joined: April 4th, 2020, 12:26 am

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!

Post Reply