decorative banner

Numbers and arrays


    Arrays represent multidimensional values in expressions. The value of each property in an expression is a single number or Boolean value for values such as opacity, or an array for 2D, 3D, or 4D values such as position or "bg_color". Many properties in After Effects, such as position, scale, and color, have more than one value parameter and thus are represented by different dimensions of arrays. For example, position is represented as a 2D or 3D array because the Position property can have 2 [x, y], or 3 [x, y, z] parameter values. Colors are represented as 4D arrays, [r, g, b, a]. Values in a color array range from 0 (black) to 1 (white).

    Note: The members of an array are always separated by commas. For example, the expression [10, 20] sets the property's x value to 10 and y value to 20.