Expressions
Linear
Inverted Rounded Corners Rectangle
Get the number of layers in this comp
Move along the edges of the comp
Move in a square
Move in a circle
Determine Acceleration / Deceleration
Reset path location + ignore transforms
Scripting
Paint ScriptUI StaticText
Paint ScriptUI Panels & Groups
Refresh Panel or Group Graphics
Remove Children from ScriptUI Items
Get / Set Render Chime Preference
JSON functions for expressions
Modulate a number
Clamp Number Or Array of Numbers
Shift, Ctrl, Alt, Key Pressed functions
Contact Gumroad through ExtendScript
Get Project Items By Name
Separate Groups And Properties
Freeze Layer At Time
Filter Color Properties
lerp
Generate a random number
Mouse Object
Useful things to include in your ExtendScript file
True After Effects Color Picker
Dockable ScriptUI Panel
Check Current OS (Win / MacOS)
Smart Property Lookup
Check / Set JavaScript engine
Get the layer of the selected property
Return all existing effects on a layer

Copied!

May 18, 2020
After Effects script
Check / Set JavaScript engine

If the user’s After Effects is set to use the legacy ExtendScript engine, use this to prompt the user to change it to the new JavaScript engine. Returns false/true, so you can also use it for validation purposes.

Good Boy Ninja
All Tools Sale
For a limited time
9
Days
99
Hours
99
Minutes
99
Seconds
Promo ends 30 Aug, 20:00 UTC
Expression


function SetJavascriptEngine() {

 var currentEnginge = app.project.expressionEngine;

 if (currentEnginge !== "javascript-1.0" && currentEnginge !== undefined) {

     var confirmChange = confirm("Confirm changing to the new JavaScript engine?");

   if (confirmChange == true) {

     try{

     app.project.expressionEngine = "javascript-1.0";

     alert("Success!");

     return true;

   } catch (e) {

     alert("Something Went Wrong...")

     return false;

   }

   } else {

   return false;

   }

 } else return true;

}


SetJavascriptEngine();



More tools for Adobe After-Effects
Colors
Noodle
shpr
Paths from Nulls