-
TypeError: this.sourceRectAtTime is not a function
I’ve been using the following code for over a year:
layerTop = this.sourceRectAtTime().top;
layerLeft = this.sourceRectAtTime().left;
layerHeight = this.sourceRectAtTime().height;
layerWidth = this.sourceRectAtTime().width;[layerLeft + layerWidth/2, layerTop + layerHeight/2];
Now that AfterEffects has updated, new projects give me an error:
After Effects warning: Expression Disabled
Error at line 1 in property 'Anchor Point' of layer 1 ('test') in comp 'Comp 1'TypeError: this.sourceRectAtTime is not a function
> layerTop = this.SourceRectAtTime().top;
layerLeft = this.sourceRectAtTime().left;
What’s going on here?