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!

April 8, 2021
After Effects script
True After Effects Color Picker

After-Effects Extendscript doesn't let you use the actual color picker ships with After-Effects. Using $.colorPicker() opens the OS color picker which sucks on windows. This method adds a temporary null to a comp, then uses the "Edit Value" command in order to launch the AE color picker. Once done, the function returns the data of the new color.

Good Boy Ninja
75% OFF
EVERYTHING
USE CODE: WORLDEND
9
Days
99
Hours
99
Minutes
99
Seconds
Promo ends 30 Aug, 20:00 UTC
Expression

function GoodBoyNinjaColorPicker(startValue){  // find the active comp  var crntComp = app.project.activeItem;  if (!crntComp || !(crntComp instanceof CompItem)) {    alert("Please open a comp first");    return [];  }  // add a temp null;  var newNull = crntComp.layers.addNull();  var newColorControl = newNull("ADBE Effect Parade").addProperty("ADBE Color Control");  var theColorProp = newColorControl("ADBE Color Control-0001");  // set the value given by the function arguments  if (startValue && startValue.length == 3) {    theColorProp.setValue(startValue);  }  // prepare to execute  var editValueID = 2240 // or app.findMenuCommandId("Edit Value...");  theColorProp.selected = true;  app.executeCommand(editValueID);  // harvest the result  var result = theColorProp.value;  // remove the null  if (newNull) {    newNull.remove();  }  return result;}// launch the true color picker with a white coloralert(GoodBoyNinjaColorPicker([1,1,1]));

Pricing
Make Money
Support
Blog