Indexing vectors and arrays
Indexing is a way of retrieving values in vectors and arrays. Vector and array indexing starts from 0--for example: The After Effects-specific elements Layer, Effect, and Mask use an indexing process that starts from 1. For example, the first layer in the Timeline window is as follows: layer(1) Generally, it's best to use the name of a layer, effect, or a mask instead of a number to avoid confusion and errors if the layer, effect, or mask is moved. When you use a name, always enclose it in straight quotes. For example, the first expression below is easier to understand than the second expression, and it will still work if you change the order of effects: effect("Colorama").param("Get Phase From") effect(1).param(5) |