Hello
I need to know how to translate the size of a text layer to get the coordinate of his corners. My need is to be able , in an automatic way, to give a solid the size of a text. For exemple if i write a longer text, the solid increases his size.
I tried this expression but AE (10.0.1) notified me that the Source's function is not defined.
var r = thisComp.layer("Layer").sourceRectAtTime(0, false);
alert(r.top + " " + r.left + " " + r.width + " " + r.height);
Any idea?
Yes, it's only available in scripts, not expressions. There is no way for expressions to simply grab the rasterized pixels of a text or shape layers and use them as dimensions. Check AEnhancers, there's some old code floating around that involves sampleImage() to test for extents of such layers.
Mylenium
nab has found a solution : http://www.aenhancers.com/viewtopic.php?f=6&t=931
North America
Europe, Middle East and Africa
Asia Pacific