-
After Effects unexpected error
Hello,
I am trying to use sourceRect to align text on Essential Graphics Template but it keep resulting unexpected error. Please could someone help me out? Thank you in advanced.
Below is the script
a = thisComp.layer(“TEXT”).sourceRectAtTime();
height = a.height;
width = a.width;
top = a.top;
left = a.left;
if (thisComp.layer(thisComp.layer(“Null 1”).effect(“ALIGNMENT”)(“Menu”)==1)
{
x = left;
}
else if (thisComp.layer(“Null 1”).effect(“ALIGNMENT”)(“Menu”)==2)
{
x = left + width / 2;
}
else {
x = left + width;
}
[x,top + height]
Regards
Obed