wiggle(value, frequency, amplitude, [octaves = 1], [amplitudeMultiplier = 0.5], [seconds = time]) | value plus smooth noise of frequency wiggles a second and amplitude, each component its own; octaves (at most 8) add finer noise, each scaled by amplitudeMultiplier |
posterizeTime(value, framesPerSecond) | value held at the start of each frame of a framesPerSecond grid on the composition clock |
valueAtTime(value, seconds) | value read with the composition clock at seconds, every clock moved alike |
smooth(value, [width = 0.2], [samples = 5]) | the mean of samples (at most 16) readings of value spread over width seconds around now |
| `loopOut(keys, [“cycle" | "pingpong" |
| `loopIn(keys, [“cycle" | "pingpong" |
lookAt(from, to) | the angle in degrees of the direction from point from to point to, for a 2D rotation |
lookAt3d(from, to) | the orientation [x, y, z] in degrees that turns a 3D layer at point from to face point to, both in world space, as After Effects’ lookAt |
| `activeCamera(“position" | "direction" |
timeToFrames(seconds, framesPerSecond) | the whole frame seconds falls in |
framesToTime(frames, framesPerSecond) | the seconds at which frame frames starts |
gaussRandom(seed, ...) | a normally distributed number (mean 0, deviation 1) hashed from up to 7 seeds |
index([node]) | the node’s place among its siblings, from 0 |
numLayers([node]) | how many siblings the node has, itself included |
inPoint([node]) | the second the node starts on the composition clock |
outPoint([node]) | the second the node ends on the composition clock |
| `marker(node, marker, [“start" | "end”])` |
toComp(point, [node], [seconds]) | a point of the node’s own space (this node’s by default) in its composition as shown, now or at seconds on the composition clock; for a node in a 3D scene where the camera shows it, and with a point of 3 numbers its depth ahead of the camera as z |
fromComp(point, [node], [seconds]) | a point of the composition’s space in the node’s own space; for a node in a 3D scene, a point of 2 lands on its plane and a point of 3 is x, y and depth ahead of the camera |
toWorld(point, [node], [seconds]) | a point of the node’s own space in its composition’s 3D scene, [x, y, z]; for a node outside a 3D scene, on the canvas with z 0 |
fromWorld(point, [node], [seconds]) | a point of the 3D scene (of the canvas, outside one) in the node’s own space, [x, y, z] |
toCompVec(vector, [node], [seconds]) | a direction of the node’s own space in its composition’s space, without translation |
fromCompVec(vector, [node], [seconds]) | a direction of the composition’s space in the node’s own space |
toWorldVec(vector, [node], [seconds]) | a direction of the node’s own space in its composition’s 3D scene (on the canvas, outside one), [x, y, z] |
fromWorldVec(vector, [node], [seconds]) | a direction of the 3D scene (of the canvas, outside one) in the node’s own space, [x, y, z] |
| `transformPoint(point, “local" | "parent" |
compositionPosition([node], [seconds]) | where the node’s own origin [0, 0] is in its composition’s space |
compositionRotation([node], [seconds]) | the angle in degrees the node’s evaluated transform turns its x axis by, in its composition’s space |
compositionScale([node], [seconds]) | [sx, sy] of the node’s evaluated transform in its composition’s space; sy is negative when it mirrors |
compositionMatrix([node], [seconds]) | the 3x3 matrix, row by row, taking the node’s own space to its composition’s |
regionMean(node, point, [radius = 0.5], [seconds]) | the average straight [r, g, b, a] of the node’s own drawing over point ± radius in its local space, before its transform and opacity, at a second of the composition clock or now; any other node reference (composited, or a layer stage) is written as json(…) |
sampleImage(node, point, [radius = 0.5], [seconds]) | After Effects’ name for regionMean |
nodePath(node, [contour = 0], [seconds]) | a contour of a shape node’s path as a path value, After Effects’ content(“Path”).path: the whole path, before the node’s effects (a trim, dashes) and in the node’s own space, so toComp(point, node) is where a point of it shows |
nodePathLength(node, [seconds]) | the length in px of a shape node’s path, every contour, before its effects and its transform |
| `nodeBox(“layout" | "content" |
createPath(points, [inTangents], [outTangents], [isClosed]) | makePath: a path of one contour through the points, with each vertex’s handles relative to it |
points(path) | pathVertices: the path’s vertices as a list |
inTangents(path) | pathInHandles: each vertex’s in handle, relative to it |
outTangents(path) | pathOutHandles: each vertex’s out handle, relative to it |
isClosed(path) | pathClosed: 1 for a closed path, else 0 |
pointOnPath(path, [percentage = 0.5]) | pathPoint: the point a fraction of the way along the path’s length |
tangentOnPath(path, [percentage = 0.5]) | pathTangent: the unit tangent a fraction of the way along the path |
normalOnPath(path, [percentage = 0.5]) | pathNormal: the unit normal a fraction of the way along the path |
list(count, item, [initial]) | a list of count (at most 1024) items, each item with loopIndex() its index and, given initial, loopValue() the item before |
loopIndex([outer = 0]) | the pass of the enclosing list, fold or accumulate, outer loops further out |
loopValue([outer = 0]) | the value so far of the enclosing loop: a list’s item before, a fold’s accumulator |
sub(a, b) | a - b |
mul(a, b) | a * b |
div(a, b) | a / b |
degreesToRadians(degrees) | degrees in radians |
radiansToDegrees(radians) | radians in degrees |