Expressions - Reference Tables. Layer Parameters These are the layer parameters to which you can apply expressions. (You can also apply expressions to effect parameters and to some mask parameters.) Use this table to know what each parameter expects from your expressions: how many dimensions, what kind of units, and common value ranges. For instance, using this table, you can see that an expression applied to the position parameter should produce results of 2 dimensions (3 if a 3D layer), with each component typically ranging from zero to the comp height or width. Global Objects This table lists all of the global objects available in After Effects, and the type of objects they return. Anytime you refer to an element outside the current layer, you'll need to start with one of these objects. Comp Attributes and Methods This table lists all of the attributes, methods and sub-objects belonging to comp objects. Layer Attributes and Methods Footage Attributes and Methods Property Attributes and Methods Vector Math Methods.
After Effects scripts, expressions, presets and projects | XScri. Expressions - Geometry. Circular Functions As we mentioned in the previous section, there's a close relationship between the trigonometric functions and circles—so close that some older textbooks call these functions 'circular functions'. One reason for this relationship is that the set of all right triangles with the same hypotenuse forms a circle, with the hypotenuse defining its radius. As you can see, the perpendicular sides of the right triangles correspond to the X- and Y-coordinates of points on the circle, relative to the circle's center.
We therefore can use the trigonometric functions to find the coordinates of points on a circle, in the same way we found the length of an unknown side of a right triangle, above: For any point on a circle with radius r, the X-coordinate is given by r*cos(A) and the Y-coordinate is given by r*sin(A) — where A is the angle in radians from the horizontal. In the following project, we'll use this to make a layer orbit around a central point. Example: Circular Motion. After Effects Expressions. Dan Ebberts's resource for AE scripting and expressions. AE ENHANCERS • Index page. Nabscripts::Home. Redefinery.