-
sourceRectAtTime Paragraph text error on other machines
Hello all,
I’ve ran in to a little problem with the sourceRectAtTime expression. I’m creating a messages template using the essential graphics panel. The expression itself is working perfectly on my machine, but when I try to open the project on another machine, the bounding box takes the size of the paragraph text bounds, not of the actual inputted text. (see screen shot below)
Any ideas on why there’s a mismatch? Both machines are on the same version of AE – AE CC V 15.0.0.
Any help greatly appreciated.
Many thanks,
RonanExpressions on rectangle bounding box:
Size:
margin=26.2;
s=thisComp.layer("message 1");x=s.sourceRectAtTime(time-s.inPoint,true).width;
y=s.sourceRectAtTime(time-s.inPoint,true).height;
box_width=x+margin*3;
box_height=y+margin*2.2;[box_width,box_height]
Position:
content("Rectangle 1").content("Rectangle Path 1").size/2/-1Anchor point:
L = thisComp.layer("box_layer 20");
r = L.sourceRectAtTime(time,false);
fromComp(L.toComp([r.left+r.width,r.top]))Expression on text layer:
Anchor point:L = thisComp.layer("message 1");
r = L.sourceRectAtTime(time,false);
fromComp(L.toComp([r.left+r.width,r.top]))

