decorative banner

Determining which values are used in an expression


    Different properties in After Effects have different value dimensions (1D, 2D, 3D, or 4D) depending on the number of value parameters they have. In the expression language, property values are either single values (numbers) or arrays (see Numbers and arrays). Arrays, such as position values, are always enclosed in square brackets and separated by commas; a single value, such as an opacity value, does not use brackets. Following are examples of different property-value dimensions:

    • 1D values: Rotation ° and Opacity %
    • 2D values: Scale [x=width, y=height], Position [x, y], and Anchor Point [x, y]
    • 3D values: Scale [width, height, depth], Position [x, y, z], and Anchor Point [x, y, z]
    • 4D values: Color [red, green, blue, alpha]

    To learn how to select a specific value in a vector or array, such as Position's y value, see Accessing specific values in a vector or array.