Search found 3 matches

by leandroprz
June 7th, 2020, 7:29 pm
Forum: Scripts Discussion
Topic: Is there an environment variable for AE's script folder?
Replies: 0
Views: 13103

Is there an environment variable for AE's script folder?

I want to create a very simple installer for a script using a .bat file (it will just copy the file into the scripts folder). I don't want to keep updating the bat installer with every new version of AE, so I thought maybe I could just use a variable to check for AE's version, like when you use %PRO...
by leandroprz
May 18th, 2020, 6:47 pm
Forum: Scripts Discussion
Topic: Can't find the code ID to open the Scripting & Expressions window
Replies: 2
Views: 9340

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

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!

by leandroprz
April 4th, 2020, 12:36 am
Forum: Scripts Discussion
Topic: Can't find the code ID to open the Scripting & Expressions window
Replies: 2
Views: 9340

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

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: app.executeCommand(2359); But in AE 2020 they moved the option to a new window called Scripti...