Expression error on the position of the anchor point
Hello ! I am a beginner in expressions, and to learn and understand I practice expressions like this found on School of motion
a=thisComp.layer("Text").sourceRectAtTime();
height=a.height;
width= a. width;
top=a.top;
left=a.left;
x=left;
y=top+height
[x,y];
This code should fix the anchor point at the bottom left of the text layer, but AE sends me back:
Error at line 8 in the “anchor point” property of the layer (“Text”) in the composition 6. property or method named “y” in the class “global” not found or non-existent ...
Can you tell me why?
