[Jamie Bradshaw] “Still a bit confused as to why it has that syntax”
x3 = thisComp.layer("Null 1").transform.position[0].valueAtTime(0);
In the above statement, thisComp.layer("Null 1").transform.position[0] evaluates to a float value which has no associated function valueAtTime().
x3 = thisComp.layer("Null 1").transform.position.valueAtTime(0)[0];
In the above statement thisComp.layer("Null 1").transform.position.valueAtTime(0) evaluates to the position property at a given time. A property has access to the valueAtTime() function because it is a method of the property class, where as a float value has no associated methods/functions.
Darby Edelen
Designer
Left Coast Digital
Santa Cruz, CA