Functions Index :: A :: ArrayGet
Module:
Definition:
ArrayGet(string array, int index)
Description:
Retrieves an element from the array, with index index and returns its value.
This is the equivalent of the var = array[index] statement used in many programming languages, where valid indexes are in the range [0..ArrayLen(array)-1].
Examples:
a1 = "0.5, 1.0, 1.5, 2.0, 2.5"
num = ArrayGet(a1, 0) # num == 0.5
c1 = AVISource(...)
a2 = ArrayCreate(c1, c1.Trim(0, -50), c1.Trim(50, -50), c1.Tweak(hue=120))
cl = a2.ArrayGet(1) # get the 2nd element of a2
fc = cl.Framecount # cl is a clip; fc == 50