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 expression
Move in a circle

This function takes simple circle properties like the radius and degrees, and returns a point on a circle, around the original value.

Using this as a position expressions, then calling the function like in the example below, will result in a circular motion that's easily customizable.

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

function CircularMotion (theRadius, degrees, angleShift){
  degrees = (degrees === undefined) ? - 90 : -degrees + 90
  angleShift = (angleShift === undefined) ? 0 : -angleShift;
  theRadius = (theRadius === undefined) ? 100 : theRadius;
  xDir = Math.sin(degreesToRadians(degrees + angleShift));
  yDir = Math.cos(degreesToRadians(degrees + angleShift));
  return [xDir * theRadius, yDir * theRadius] + value;
}

Pricing
Make Money
Support
Blog