after-effects

Open web page in After Effects with ExtendScript

Deadly 提交于 2019-12-03 10:13:30
This may be a simple one but I can't figure it out. How can I open a web page in the main browser from extendscript as I would do with window.open() in Javascript? I am targeting After Effects and would like it to work on both OS X and Windows. In After Effects you can simply do it using the system object, as Dirk mentioned. However you need several things for that: checking that the script can access the network: if (app.preferences.getPrefAsLong("Main Pref Section", "Pref_SCRIPTING_FILE_NETWORK_SECURITY") != 1) { alert("Please tick the \"Allow Scripts to Write Files and Access Network\"

After Effects / ExtendScript: Using libraries and importing .jsx files?

断了今生、忘了曾经 提交于 2019-12-03 07:36:24
问题 I am new to After Effects scripting but have much experience with JavaScript in the browser. How do I import .jsx files? Can I use js libraries such as underscore.js etc? What are some good resources for AE scripting? (Ideally infographics projects) 回答1: To include a .jsx next to your script use: #include "includeme.jsx" EDIT 2: You can also include files using the following syntax: //@include "includeme.jsx" Which (IMHO) is the better way. It wont break a linter and is more javascript-ish.

After Effects / ExtendScript: Using libraries and importing .jsx files?

匆匆过客 提交于 2019-12-02 21:07:54
I am new to After Effects scripting but have much experience with JavaScript in the browser. How do I import .jsx files? Can I use js libraries such as underscore.js etc? What are some good resources for AE scripting? (Ideally infographics projects) To include a .jsx next to your script use: #include "includeme.jsx" EDIT 2: You can also include files using the following syntax: //@include "includeme.jsx" Which (IMHO) is the better way. It wont break a linter and is more javascript-ish. You can use plain old javascript (ES3 Syntax). If the libraries you include use some browser specific js